@wssto2/vue-core 0.4.19 → 0.4.20

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 (54) hide show
  1. package/dist/{Activity-CLyG5Y9o.js → Activity-C0NvjIi5.js} +3 -3
  2. package/dist/{Changes-xF1VMbqD.js → Changes-hoMHeAZt.js} +2 -2
  3. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-nojILoAf.js → CollectionPage.vue_vue_type_script_setup_true_lang-BNM_cbXa.js} +2 -2
  4. package/dist/DateField.vue_vue_type_script_setup_true_lang-CpuH0WTl.js +281 -0
  5. package/dist/{DeadLetters-AbbNs69D.js → DeadLetters-O6QReswO.js} +2 -2
  6. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-C7nq7MJB.js → FormGroup.vue_vue_type_script_setup_true_lang-DSwSRsA5.js} +2 -1
  7. package/dist/{General-De4Q6Wfn.js → General-9Sgxb74n.js} +4 -4
  8. package/dist/{NewRolePage-QAv_XsT0.js → NewRolePage-D-LunWMH.js} +2 -2
  9. package/dist/NumberField.vue_vue_type_script_setup_true_lang-DaE5BLm4.js +161 -0
  10. package/dist/{ProfilePage-CjjKhkHX.js → ProfilePage-DJUDCyEr.js} +3 -3
  11. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-FLJk6Kb2.js → RoleEditor.vue_vue_type_script_setup_true_lang-D-b-O6SG.js} +4 -4
  12. package/dist/{RolePage-De7s2sYr.js → RolePage-Ha-EgoEJ.js} +4 -4
  13. package/dist/{RolesPage-TXQKtK_J.js → RolesPage-8uWWCClN.js} +3 -3
  14. package/dist/SelectField.vue_vue_type_script_setup_true_lang-C3FbRQW7.js +515 -0
  15. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-CuxVe7rm.js → SessionList.vue_vue_type_script_setup_true_lang-D5qm77Zo.js} +1 -1
  16. package/dist/{Sessions-BDLI0o-z.js → Sessions-Dz4KYMu9.js} +2 -2
  17. package/dist/{SettingsPage-Kzcqv91E.js → SettingsPage-D47NSOYW.js} +3 -3
  18. package/dist/{SignIn-DKo46hNK.js → SignIn-CNv68Tba.js} +2 -2
  19. package/dist/{SignInPage-B2v3is80.js → SignInPage-CsjC4aiV.js} +2 -2
  20. package/dist/{SignIns-D-_a_S6O.js → SignIns-CgsNf8uf.js} +1 -1
  21. package/dist/{TextField.vue_vue_type_script_setup_true_lang-BslHroDP.js → TextField.vue_vue_type_script_setup_true_lang-CP2WeU36.js} +114 -111
  22. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BJ4__cvJ.js +93 -0
  23. package/dist/TimeField.vue_vue_type_script_setup_true_lang-DBxKAWRo.js +190 -0
  24. package/dist/{UserRecord-BR70ai9q.js → UserRecord-B9r_9U1z.js} +4 -4
  25. package/dist/{UsersList-BC9S6omH.js → UsersList-BBLa3OCv.js} +6 -6
  26. package/dist/access/index.js +1 -1
  27. package/dist/collection/index.js +1 -1
  28. package/dist/form/ComboField.vue.d.ts +7 -3
  29. package/dist/form/DateField.vue.d.ts +4 -0
  30. package/dist/form/DateTimeField.vue.d.ts +4 -0
  31. package/dist/form/MoneyField.vue.d.ts +10 -5
  32. package/dist/form/NumberField.vue.d.ts +13 -5
  33. package/dist/form/SelectField.vue.d.ts +3 -1
  34. package/dist/form/TextField.vue.d.ts +4 -0
  35. package/dist/form/TextareaField.vue.d.ts +4 -0
  36. package/dist/form/TimeField.vue.d.ts +4 -0
  37. package/dist/form/index.d.ts +1 -1
  38. package/dist/form/index.js +1036 -1012
  39. package/dist/form/options.d.ts +4 -0
  40. package/dist/identity/index.js +1 -1
  41. package/dist/{index-B9KqrN-F.js → index-D-0JNiFF.js} +2 -2
  42. package/dist/{index-BrqxylSS.js → index-D6BjUQJT.js} +5 -5
  43. package/dist/{index-D8akxuKo.js → index-Dxu7ZfCC.js} +11 -11
  44. package/dist/index.d.ts +1 -1
  45. package/dist/index.js +1 -1
  46. package/dist/notifications/index.js +1 -1
  47. package/dist/{status-vMwum3Y9.js → status-BLTC7wi1.js} +1 -1
  48. package/dist/styles.css +1 -1
  49. package/package.json +1 -1
  50. package/dist/DateField.vue_vue_type_script_setup_true_lang-CfPwcEM2.js +0 -278
  51. package/dist/NumberField.vue_vue_type_script_setup_true_lang-djJvP6Og.js +0 -150
  52. package/dist/SelectField.vue_vue_type_script_setup_true_lang-ByDo_32P.js +0 -493
  53. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-XZRHwx-n.js +0 -91
  54. package/dist/TimeField.vue_vue_type_script_setup_true_lang-BB7ZGpvP.js +0 -187
@@ -1,187 +0,0 @@
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
- import { useI18n as M } from "vue-i18n";
3
- import { _ as Z } from "./DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
4
- import { u as ee } from "./format-D8X4zsx6.js";
5
- import { _ as te } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
6
- import { u as oe } from "./mediaQuery-CygcXmFW.js";
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
- 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
- function be(i) {
11
- const { t: n } = M(), e = m(() => [n("core.form.time.words.now").toLowerCase(), "now"]);
12
- return {
13
- placeholder: m(() => n("core.form.time.placeholder")),
14
- parse(l) {
15
- if (e.value.includes(l.trim().toLowerCase())) return { value: F(i()) };
16
- const a = me(l, i());
17
- return "time" in a ? { value: a.time } : { error: a.error === "step" ? n("core.form.time.step", { step: i() }) : n("core.form.time.invalid") };
18
- },
19
- shortcuts: (l) => (l ?? ne).map((a) => ue(a, n("core.form.time.now"), F(i())))
20
- };
21
- }
22
- const ye = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ke = ["aria-label", "onClick"], Ve = /* @__PURE__ */ K({
23
- __name: "TimeField",
24
- props: /* @__PURE__ */ X(/* @__PURE__ */ Y({
25
- label: {},
26
- labelHidden: { type: Boolean },
27
- hint: {},
28
- error: {},
29
- required: { type: Boolean },
30
- editable: { type: Boolean },
31
- disabled: { type: Boolean },
32
- lockedReason: {},
33
- presentation: {},
34
- name: {},
35
- minuteStep: {},
36
- quickTimes: {}
37
- }, { ...ie, minuteStep: 1, quickTimes: void 0 }), {
38
- modelValue: { default: null },
39
- modelModifiers: {}
40
- }),
41
- emits: ["update:modelValue"],
42
- setup(i, { expose: n }) {
43
- const e = i, l = W(i, "modelValue"), { t: a } = M(), I = ee(), Q = oe(), $ = b("input"), p = b("popover"), x = b("panel"), q = b("sheet"), y = be(() => e.minuteStep), r = de({ model: l, display: (t) => t, parse: y.parse }), C = m(() => y.shortcuts(e.quickTimes)), V = m(() => e.error || r.message.value), R = ae("date", () => V.value ? "error" : e.disabled ? "locked" : "rest"), A = m(() => {
44
- const t = ce(l.value);
45
- return t ? I.time(new Date(2e3, 0, 1, t.hour, t.minute)) : null;
46
- }), S = m(() => L(r.typed.value) ? r.typed.value : L(l.value) ? l.value : null);
47
- async function k(t) {
48
- e.disabled || (p.value?.present(), t && (await z(), await z(), x.value?.querySelector("[role=listbox]")?.focus()));
49
- }
50
- function H(t) {
51
- t.key === "Enter" ? (r.commit(), p.value?.dismiss()) : t.key === "ArrowDown" && (t.preventDefault(), k(!0));
52
- }
53
- return n({ focus: () => $.value?.focus() }), (t, s) => (d(), N(re, _({ ...o(se)(e), error: V.value }, {
54
- value: A.value,
55
- "value-style": "numeric"
56
- }), j({
57
- default: u(({ id: B, describedby: D, invalid: E }) => [
58
- o(Q) ? (d(), g(P, { key: 0 }, [
59
- c(Z, _({ id: B, "aria-describedby": D }, {
60
- disabled: e.disabled,
61
- invalid: E,
62
- placeholder: o(a)("core.form.select.choose"),
63
- onClick: s[0] || (s[0] = (f) => q.value?.present())
64
- }), {
65
- default: u(() => [
66
- l.value ? (d(), g(P, { key: 0 }, [
67
- G(J(l.value), 1)
68
- ], 64)) : U("", !0)
69
- ]),
70
- _: 1
71
- }, 16, ["disabled", "invalid", "placeholder"]),
72
- c(pe, {
73
- ref_key: "sheet",
74
- ref: q,
75
- title: e.label ?? o(a)("core.form.time.label"),
76
- mode: "time",
77
- "model-value": l.value,
78
- shortcuts: C.value,
79
- step: e.minuteStep,
80
- clearable: !e.required,
81
- "onUpdate:modelValue": o(r).set
82
- }, null, 8, ["title", "model-value", "shortcuts", "step", "clearable", "onUpdate:modelValue"])
83
- ], 64)) : (d(), N(le, {
84
- key: 1,
85
- ref_key: "popover",
86
- ref: p,
87
- label: e.label ?? o(a)("core.form.time.label"),
88
- width: "sm",
89
- placement: "bottom-start",
90
- arrow: !1,
91
- autofocus: !1
92
- }, {
93
- trigger: u(({ attrs: f, presented: w }) => [
94
- h("div", {
95
- class: O(["inline-flex max-w-full items-center gap-2", o(R)])
96
- }, [
97
- h("input", _({
98
- id: B,
99
- ref_key: "input",
100
- ref: $
101
- }, f, {
102
- type: "text",
103
- role: "combobox",
104
- autocomplete: "off",
105
- size: "10",
106
- name: e.name,
107
- value: o(r).text.value,
108
- placeholder: o(y).placeholder.value,
109
- disabled: e.disabled,
110
- required: e.required,
111
- "aria-required": e.required || void 0,
112
- "aria-invalid": E || void 0,
113
- "aria-describedby": D,
114
- class: "block min-h-7 min-w-0 border-0 bg-transparent py-1 pl-2.5 text-body tabular-nums text-content-strong placeholder:text-content-disabled focus:outline-none focus:ring-0 disabled:cursor-not-allowed",
115
- onInput: s[1] || (s[1] = (v) => o(r).input(v.target.value)),
116
- onBlur: s[2] || (s[2] = (v) => o(r).commit()),
117
- onKeydown: H,
118
- onClick: s[3] || (s[3] = (v) => k(!1))
119
- }), null, 16, ye),
120
- e.disabled ? U("", !0) : (d(), g("button", {
121
- key: 0,
122
- type: "button",
123
- tabindex: "-1",
124
- "aria-label": o(a)("core.form.time.open"),
125
- class: "mr-2 flex shrink-0 cursor-pointer items-center text-content-link",
126
- onClick: (v) => w ? p.value?.dismiss() : k(!0)
127
- }, [
128
- c(o(te), {
129
- name: "timeLine",
130
- size: 18
131
- })
132
- ], 8, ke))
133
- ], 2)
134
- ]),
135
- default: u(({ dismiss: f }) => [
136
- h("div", {
137
- ref_key: "panel",
138
- ref: x,
139
- class: "flex flex-col gap-2.5"
140
- }, [
141
- c(fe, {
142
- "model-value": S.value,
143
- step: e.minuteStep,
144
- "onUpdate:modelValue": o(r).set
145
- }, null, 8, ["model-value", "step", "onUpdate:modelValue"]),
146
- c(ve, {
147
- items: C.value,
148
- selected: S.value,
149
- onPick: (w) => {
150
- o(r).set(w), f();
151
- }
152
- }, null, 8, ["items", "selected", "onPick"])
153
- ], 512)
154
- ]),
155
- _: 2
156
- }, 1032, ["label"]))
157
- ]),
158
- _: 2
159
- }, [
160
- t.$slots.trailing ? {
161
- name: "trailing",
162
- fn: u(() => [
163
- T(t.$slots, "trailing")
164
- ]),
165
- key: "0"
166
- } : void 0,
167
- t.$slots.labelTrailing ? {
168
- name: "labelTrailing",
169
- fn: u(() => [
170
- T(t.$slots, "labelTrailing")
171
- ]),
172
- key: "1"
173
- } : void 0,
174
- t.$slots.readonly ? {
175
- name: "readonly",
176
- fn: u(() => [
177
- T(t.$slots, "readonly")
178
- ]),
179
- key: "2"
180
- } : void 0
181
- ]), 1040, ["value"]));
182
- }
183
- });
184
- export {
185
- Ve as _,
186
- be as u
187
- };