@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.
Files changed (70) hide show
  1. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-DOjn7fqy.js → ActionRow.vue_vue_type_script_setup_true_lang-QPvYudWc.js} +1 -1
  2. package/dist/{Activity-DB9ABAMb.js → Activity-CLyG5Y9o.js} +4 -4
  3. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CxU9aNRQ.js} +1 -1
  4. package/dist/{Changes-IIczcs6O.js → Changes-xF1VMbqD.js} +3 -3
  5. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js → CollectionPage.vue_vue_type_script_setup_true_lang-nojILoAf.js} +6 -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
  7. package/dist/{DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js → DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js} +5 -5
  8. package/dist/{DateField.vue_vue_type_script_setup_true_lang-8mvjzRA-.js → DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js} +3 -3
  9. package/dist/{DeadLetters-Bq5YpnvT.js → DeadLetters-AbbNs69D.js} +2 -2
  10. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js → FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js} +1 -1
  11. 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
  12. package/dist/{General-DQruOZs2.js → General-De4Q6Wfn.js} +6 -6
  13. package/dist/{Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js → Menu.vue_vue_type_script_setup_true_lang-DsFOeCVe.js} +1 -1
  14. package/dist/{NewRolePage-BcA8jBBQ.js → NewRolePage-QAv_XsT0.js} +3 -3
  15. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js → NumberField.vue_vue_type_script_setup_true_lang-djJvP6Og.js} +1 -1
  16. package/dist/{Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js → Popover.vue_vue_type_script_setup_true_lang-C70GrCP7.js} +8 -8
  17. package/dist/{ProfilePage-BqdCzyax.js → ProfilePage-CjjKhkHX.js} +6 -6
  18. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js → RecordHeader.vue_vue_type_script_setup_true_lang-szzWzdDu.js} +1 -1
  19. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js → ResourcePage.vue_vue_type_script_setup_true_lang-BFaaFQSm.js} +2 -2
  20. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-DPpCuJWk.js → RoleEditor.vue_vue_type_script_setup_true_lang-FLJk6Kb2.js} +7 -7
  21. package/dist/{RolePage-IES_ADt5.js → RolePage-De7s2sYr.js} +7 -7
  22. package/dist/{RolesPage-D0K7tEL-.js → RolesPage-TXQKtK_J.js} +5 -5
  23. 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
  24. 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
  25. 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
  26. package/dist/SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js +493 -0
  27. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js → SessionList.vue_vue_type_script_setup_true_lang-CuxVe7rm.js} +2 -2
  28. package/dist/{Sessions-BfpiOhGs.js → Sessions-BDLI0o-z.js} +2 -2
  29. package/dist/{SettingsPage-BnEpURcU.js → SettingsPage-Kzcqv91E.js} +7 -7
  30. package/dist/{SignIn-DrLE0gNr.js → SignIn-DKo46hNK.js} +4 -4
  31. package/dist/{SignInPage-CRynZCU2.js → SignInPage-B2v3is80.js} +3 -3
  32. package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js → SignInTable.vue_vue_type_script_setup_true_lang-ByEAVfjv.js} +1 -1
  33. package/dist/{SignIns-BQ8tISWn.js → SignIns-D-_a_S6O.js} +2 -2
  34. package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js → SwitchField.vue_vue_type_script_setup_true_lang-ALvJisiP.js} +1 -1
  35. package/dist/TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js +314 -0
  36. 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
  37. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-BebAIPeL.js → TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js} +3 -3
  38. 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
  39. package/dist/{UserRecord-CqmPm4Fv.js → UserRecord-BR70ai9q.js} +7 -7
  40. package/dist/{UsersList-CHAray61.js → UsersList-BC9S6omH.js} +6 -6
  41. package/dist/access/index.js +1 -1
  42. package/dist/{anchored-Cj4--8dT.js → anchored-DpuUwf-9.js} +17 -15
  43. package/dist/collection/index.js +4 -4
  44. package/dist/{control-B_Nwtmag.js → control-B4SdblL6.js} +134 -118
  45. package/dist/controls/index.js +1 -1
  46. package/dist/form/ComboField.vue.d.ts +2 -0
  47. package/dist/form/Field.vue.d.ts +2 -0
  48. package/dist/form/SelectField.vue.d.ts +2 -0
  49. package/dist/form/TextField.vue.d.ts +6 -2
  50. package/dist/form/index.d.ts +1 -1
  51. package/dist/form/index.js +964 -957
  52. package/dist/identity/index.js +1 -1
  53. package/dist/{index-91Lo0hJy.js → index-B9KqrN-F.js} +3 -3
  54. package/dist/{index-wlRejl73.js → index-BrqxylSS.js} +7 -7
  55. package/dist/{index-sYamgVg7.js → index-D8akxuKo.js} +12 -12
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/notifications/index.js +1 -1
  59. package/dist/overlay/anchored.d.ts +2 -0
  60. package/dist/overlay/index.js +3 -3
  61. package/dist/page/index.js +5 -5
  62. package/dist/phone/index.js +2 -2
  63. package/dist/resource/index.js +1 -1
  64. package/dist/{rowLayout-BFz4Kdoy.js → rowLayout-D1vrdy0s.js} +2 -2
  65. package/dist/shell/index.js +2 -2
  66. package/dist/{status-B_IMA25a.js → status-vMwum3Y9.js} +1 -1
  67. package/dist/styles.css +1 -1
  68. package/package.json +1 -1
  69. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js +0 -489
  70. package/dist/TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js +0 -299
@@ -1,299 +0,0 @@
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
- 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-DHJFKB26.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: { default: void 0 },
46
- selected: { default: null }
47
- },
48
- emits: ["pick", "hover"],
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, {
51
- reference: () => o.anchor,
52
- placement: () => "bottom-start",
53
- offset: 4,
54
- padding: 8,
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`;
57
- }
58
- });
59
- return ee(() => o.highlighted, () => void te(() => x.value?.querySelector("[aria-selected='true']")?.scrollIntoView?.({ block: "nearest" }))), (u, h) => b.value ? (a(), l("div", {
60
- key: 0,
61
- id: `${o.id}-list`,
62
- ref_key: "panel",
63
- ref: x,
64
- role: "listbox",
65
- "aria-busy": k.value || void 0,
66
- style: se(s(C)),
67
- "data-test": "suggestion-list",
68
- class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float",
69
- onMousedown: h[0] || (h[0] = oe(() => {
70
- }, ["prevent"]))
71
- }, [
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),
77
- role: "option",
78
- "aria-selected": n === o.highlighted,
79
- "aria-disabled": i.disabled || void 0,
80
- "data-test": "suggestion-option",
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)
84
- }, [
85
- o.recent ? (a(), A(s(ye), {
86
- key: 0,
87
- name: "history",
88
- size: 16,
89
- class: "shrink-0 text-content-disabled"
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
- ])
108
- ])
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))
110
- ]),
111
- o.hint && o.items.length > 0 ? (a(), l("p", Ee, r(o.hint), 1)) : p("", !0)
112
- ], 44, we)) : p("", !0);
113
- }
114
- }), Pe = {
115
- key: 0,
116
- class: "shrink-0 text-footnote text-content-muted"
117
- }, 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 = {
118
- key: 1,
119
- class: "shrink-0 text-footnote text-content-muted"
120
- }, Je = /* @__PURE__ */ O({
121
- __name: "TextField",
122
- props: /* @__PURE__ */ K(/* @__PURE__ */ ue({
123
- label: {},
124
- labelHidden: { type: Boolean },
125
- hint: {},
126
- error: {},
127
- required: { type: Boolean },
128
- editable: { type: Boolean },
129
- disabled: { type: Boolean },
130
- lockedReason: {},
131
- presentation: {},
132
- name: {},
133
- type: {},
134
- placeholder: {},
135
- maxLength: {},
136
- autocomplete: {},
137
- mono: { type: Boolean },
138
- prefix: {},
139
- suffix: {},
140
- width: {},
141
- suggestions: { type: [Array, Function] },
142
- suggestionsMinLength: {},
143
- suggestionsDebounce: {},
144
- suggestionsLimit: {},
145
- recents: {}
146
- }, {
147
- ...ge,
148
- type: "text",
149
- placeholder: void 0,
150
- maxLength: void 0,
151
- autocomplete: void 0,
152
- mono: !1,
153
- prefix: void 0,
154
- suffix: void 0,
155
- width: "md",
156
- suggestions: void 0,
157
- suggestionsMinLength: 2,
158
- suggestionsDebounce: 300,
159
- suggestionsLimit: 8,
160
- recents: void 0
161
- }), {
162
- modelValue: { default: "" },
163
- modelModifiers: {}
164
- }),
165
- emits: /* @__PURE__ */ K(["picked"], ["update:modelValue"]),
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(() => {
168
- const e = t.suggestions;
169
- if (e)
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,
173
- minLength: () => t.suggestionsMinLength,
174
- debounce: () => t.suggestionsDebounce,
175
- limit: () => t.suggestionsLimit,
176
- listAllWhenEmpty: !1,
177
- recents: () => t.recents
178
- }), { items: D, open: V, status: N, highlighted: R, showingRecent: W } = d, H = ie(!0), T = () => {
179
- const e = b.value;
180
- H.value = !e || e.selectionStart === e.value.length && e.selectionEnd === e.value.length;
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));
182
- function j(e) {
183
- T(), n.value && d.ask(e.target.value);
184
- }
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 } : {} });
187
- }
188
- function J() {
189
- n.value && c.value === "" && d.show("");
190
- }
191
- function Q() {
192
- const e = d.current.value;
193
- return !$.value || !e ? !1 : (E(e), !0);
194
- }
195
- const X = (e) => {
196
- n.value && d.keydown(e, { pick: E, enterNeedsMove: !0, complete: Q });
197
- };
198
- return S({ focus: () => b.value?.focus() }), (e, m) => (a(), A(he, le(s(ve)(t), {
199
- value: c.value,
200
- prefix: t.prefix,
201
- suffix: t.suffix,
202
- "value-style": t.mono ? "mono" : void 0
203
- }), re({
204
- default: q(({ id: y, describedby: Y, invalid: Z }) => [
205
- f("div", {
206
- ref_key: "anchor",
207
- ref: k,
208
- class: B(["flex items-center gap-1.5", [s(g), C.value]])
209
- }, [
210
- t.prefix ? (a(), l("span", Pe, r(t.prefix), 1)) : p("", !0),
211
- f("div", ze, [
212
- ce(f("input", {
213
- id: y,
214
- ref_key: "input",
215
- ref: b,
216
- "onUpdate:modelValue": m[0] || (m[0] = (M) => c.value = M),
217
- type: t.type,
218
- name: t.name,
219
- placeholder: t.placeholder,
220
- maxlength: t.maxLength,
221
- autocomplete: n.value ? "off" : t.autocomplete,
222
- disabled: t.disabled,
223
- required: t.required,
224
- "aria-required": t.required || void 0,
225
- "aria-invalid": Z || void 0,
226
- "aria-describedby": Y,
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" : ""]]),
233
- onInput: j,
234
- onKeyup: T,
235
- onClick: T,
236
- onKeydown: X,
237
- onFocus: J,
238
- onBlur: m[1] || (m[1] = (M) => s(d).close())
239
- }, null, 42, Ae), [
240
- [de, c.value]
241
- ]),
242
- $.value ? (a(), l("span", {
243
- key: 0,
244
- "aria-hidden": "true",
245
- class: B(["pointer-events-none absolute inset-0 flex items-center overflow-hidden whitespace-pre py-1 text-body", t.mono ? "font-mono" : ""]),
246
- "data-test": "completion"
247
- }, [
248
- f("span", Ne, r(c.value), 1),
249
- f("span", Re, r($.value), 1)
250
- ], 2)) : p("", !0)
251
- ]),
252
- t.suffix ? (a(), l("span", We, r(t.suffix), 1)) : p("", !0)
253
- ], 2),
254
- n.value ? (a(), A(Fe, {
255
- key: 0,
256
- id: y,
257
- anchor: k.value,
258
- open: s(V),
259
- items: s(D),
260
- highlighted: s(R),
261
- query: c.value,
262
- status: s(N),
263
- recent: s(W),
264
- "empty-message": !1,
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)
269
- ]),
270
- _: 2
271
- }, [
272
- e.$slots.trailing ? {
273
- name: "trailing",
274
- fn: q(() => [
275
- L(e.$slots, "trailing")
276
- ]),
277
- key: "0"
278
- } : void 0,
279
- e.$slots.labelTrailing ? {
280
- name: "labelTrailing",
281
- fn: q(() => [
282
- L(e.$slots, "labelTrailing")
283
- ]),
284
- key: "1"
285
- } : void 0,
286
- e.$slots.readonly ? {
287
- name: "readonly",
288
- fn: q(() => [
289
- L(e.$slots, "readonly")
290
- ]),
291
- key: "2"
292
- } : void 0
293
- ]), 1040, ["value", "prefix", "suffix", "value-style"]));
294
- }
295
- });
296
- export {
297
- Je as _,
298
- Fe as a
299
- };