@wssto2/vue-core 0.4.15 → 0.4.16
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-CkvS5W6K.js → ActionRow.vue_vue_type_script_setup_true_lang-DOjn7fqy.js} +1 -1
- package/dist/{Activity-4q26REYj.js → Activity-CVO3sJwy.js} +4 -4
- package/dist/{Changes-CKIuGF8O.js → Changes-Bzvl3cEx.js} +3 -3
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js → CollectionPage.vue_vue_type_script_setup_true_lang-CD5zZ29o.js} +2 -2
- package/dist/DateField.vue_vue_type_script_setup_true_lang-BufoFwVQ.js +278 -0
- package/dist/{DeadLetters-DPGcQOz1.js → DeadLetters-DmwUtgf9.js} +2 -2
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-noYI9QMk.js → FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js → FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js} +1 -1
- package/dist/{General-CUA9b3ML.js → General-CUEjJBD4.js} +6 -6
- package/dist/{NewRolePage-DBfCvDWA.js → NewRolePage-Cyn-oV6r.js} +2 -2
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-a8kN3A7k.js +150 -0
- package/dist/{ProfilePage-On-eAiJ-.js → ProfilePage-I74SQBFO.js} +4 -4
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js → RoleEditor.vue_vue_type_script_setup_true_lang-Ce6wjptT.js} +7 -7
- package/dist/{RolePage-B8oul55j.js → RolePage-DWQP3qQl.js} +5 -5
- package/dist/{RolesPage-DsXVivdj.js → RolesPage-BeEsHIQ2.js} +4 -4
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js +81 -0
- package/dist/{SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js → SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js} +161 -139
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js → SessionList.vue_vue_type_script_setup_true_lang-DoUo68xE.js} +2 -2
- package/dist/{Sessions-BTyXDEuY.js → Sessions-D8IXcb5M.js} +2 -2
- package/dist/{SettingsPage-DHTmMgif.js → SettingsPage-DRQP2nrH.js} +6 -6
- package/dist/{SignIn-DU4DE2wj.js → SignIn-CAZkovhb.js} +4 -4
- package/dist/{SignInPage-BA22kyOp.js → SignInPage-D-49oLY3.js} +3 -3
- package/dist/{SignIns-C8QAZBaL.js → SignIns-BtNfgMLc.js} +1 -1
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js +87 -0
- package/dist/TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js +292 -0
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js +91 -0
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-pAdLPYXA.js +187 -0
- package/dist/{UserRecord-D1BNmYp9.js → UserRecord-BSbNuRFi.js} +5 -5
- package/dist/{UsersList-ltx3G23-.js → UsersList-DPHxcaDm.js} +6 -6
- package/dist/access/index.js +1 -1
- package/dist/app/application.d.ts +1 -1
- package/dist/collection/index.js +1 -1
- package/dist/{control-CX9BG2UB.js → control-B_Nwtmag.js} +96 -82
- package/dist/form/CardSelectField.vue.d.ts +2 -2
- package/dist/form/ChoiceChips.vue.d.ts +2 -2
- package/dist/form/ComboField.vue.d.ts +2 -2
- package/dist/form/DateField.vue.d.ts +9 -2
- package/dist/form/DateTimeField.vue.d.ts +9 -2
- package/dist/form/Field.vue.d.ts +1 -1
- package/dist/form/FileField.vue.d.ts +9 -2
- package/dist/form/I18nField.vue.d.ts +9 -2
- package/dist/form/MoneyField.vue.d.ts +9 -2
- package/dist/form/MonthYearField.vue.d.ts +9 -2
- package/dist/form/MultiSelectField.vue.d.ts +2 -2
- package/dist/form/NumberField.vue.d.ts +20 -2
- package/dist/form/PhotoField.vue.d.ts +9 -2
- package/dist/form/SegmentedField.vue.d.ts +2 -2
- package/dist/form/SelectField.vue.d.ts +2 -2
- package/dist/form/SwitchField.vue.d.ts +2 -2
- package/dist/form/TextField.vue.d.ts +9 -2
- package/dist/form/TextareaField.vue.d.ts +9 -2
- package/dist/form/TimeField.vue.d.ts +9 -2
- package/dist/form/field.d.ts +9 -0
- package/dist/form/index.d.ts +1 -1
- package/dist/form/index.js +1079 -881
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.js +31 -28
- package/dist/identity/index.js +1 -1
- package/dist/{index-DwdVrW6q.js → index-Bq96L43f.js} +12 -12
- package/dist/{index-BCw_Ki6z.js → index-CWeNiBX6.js} +2 -2
- package/dist/{index-Chh4z9xW.js → index-yKIOaisE.js} +7 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/phone/index.js +1 -1
- package/dist/{status-cWCAMAmW.js → status-DzmySsWw.js} +1 -1
- package/package.json +1 -1
- package/dist/DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js +0 -256
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +0 -126
- package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js +0 -59
- package/dist/SwitchField.vue_vue_type_script_setup_true_lang-B2Z2hy_h.js +0 -65
- package/dist/TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js +0 -270
- package/dist/TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js +0 -69
- package/dist/TimeField.vue_vue_type_script_setup_true_lang-Dr0h-V_8.js +0 -165
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import { _ as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { _ as
|
|
7
|
-
import { _ as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { a as
|
|
10
|
-
import { g as
|
|
11
|
-
import { a as
|
|
12
|
-
const
|
|
1
|
+
import { defineComponent as G, ref as N, useId as J, useTemplateRef as K, computed as g, watch as B, nextTick as Q, openBlock as a, createElementBlock as f, normalizeClass as b, createElementVNode as r, createVNode as q, unref as o, withDirectives as X, vModelText as Y, createCommentVNode as v, toDisplayString as $, createBlock as V, Fragment as R, renderList as H, onScopeDispose as Z, mergeProps as I, createSlots as M, withCtx as S, createTextVNode as ee, renderSlot as U, mergeDefaults as te } from "vue";
|
|
2
|
+
import { useI18n as W } from "vue-i18n";
|
|
3
|
+
import { _ as oe } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
4
|
+
import { _ as z } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
5
|
+
import { u as le } from "./mediaQuery-CygcXmFW.js";
|
|
6
|
+
import { _ as P } from "./ToneDot.vue_vue_type_script_setup_true_lang-99rNn-L5.js";
|
|
7
|
+
import { _ as ae } from "./Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
|
|
8
|
+
import { _ as ne } from "./Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
|
|
9
|
+
import { a as se, c as re, _ as ie, f as ue, b as de } from "./control-B_Nwtmag.js";
|
|
10
|
+
import { g as ce, m as pe } from "./options-Ba_0uLWN.js";
|
|
11
|
+
import { a as me } from "./suggestions-BxMm6MQA.js";
|
|
12
|
+
const fe = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill px-2.5 text-content-muted focus-within:outline-2 focus-within:outline-offset-2 focus-within:outline-border-focus" }, ve = ["aria-label", "placeholder"], be = ["aria-multiselectable", "aria-busy"], ge = {
|
|
13
13
|
key: 0,
|
|
14
14
|
role: "presentation"
|
|
15
|
-
},
|
|
15
|
+
}, he = ["aria-selected"], ye = { class: "flex-1 py-2" }, xe = {
|
|
16
16
|
key: 1,
|
|
17
17
|
role: "presentation",
|
|
18
18
|
class: "flex items-center gap-2.5 px-row-inset py-4 text-subheadline text-content-muted",
|
|
19
19
|
"data-test": "options-loading"
|
|
20
|
-
},
|
|
20
|
+
}, ke = { role: "status" }, _e = {
|
|
21
21
|
key: 2,
|
|
22
22
|
role: "presentation",
|
|
23
23
|
class: "flex flex-col items-start gap-1 px-row-inset py-3",
|
|
24
24
|
"data-test": "options-failed"
|
|
25
|
-
},
|
|
25
|
+
}, we = {
|
|
26
26
|
role: "alert",
|
|
27
27
|
class: "text-subheadline text-content-destructive"
|
|
28
|
-
},
|
|
28
|
+
}, $e = ["id"], Ce = ["aria-labelledby"], Se = ["aria-selected"], Ve = ["disabled", "onClick"], Le = {
|
|
29
29
|
key: 0,
|
|
30
30
|
"aria-hidden": "true",
|
|
31
31
|
class: "flex shrink-0 items-center"
|
|
32
|
-
},
|
|
32
|
+
}, De = { class: "min-w-0 flex-1 text-content-strong" }, qe = {
|
|
33
33
|
key: 1,
|
|
34
34
|
class: "shrink-0 text-footnote text-content-muted"
|
|
35
|
-
},
|
|
35
|
+
}, ze = {
|
|
36
36
|
key: 3,
|
|
37
37
|
class: "px-4 py-6 text-center text-subheadline text-content-muted"
|
|
38
|
-
},
|
|
38
|
+
}, j = /* @__PURE__ */ G({
|
|
39
39
|
__name: "OptionList",
|
|
40
40
|
props: {
|
|
41
41
|
options: {},
|
|
@@ -48,7 +48,7 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
48
48
|
},
|
|
49
49
|
emits: ["select", "retry"],
|
|
50
50
|
setup(i, { emit: h }) {
|
|
51
|
-
const e = i, y = h, { t: m } =
|
|
51
|
+
const e = i, y = h, { t: m } = W(), n = N(""), c = J(), x = K("root"), s = g(() => e.options.length >= e.searchFrom), C = g(() => ce(pe(e.options, n.value))), L = (p) => e.multiple ? Array.isArray(e.modelValue) && e.modelValue.includes(p.value) : e.modelValue === p.value, u = g(() => e.multiple ? !1 : e.modelValue === null);
|
|
52
52
|
function w(p) {
|
|
53
53
|
if (!["ArrowDown", "ArrowUp", "Home", "End"].includes(p.key)) return;
|
|
54
54
|
const t = [...x.value?.querySelectorAll("[data-option]:not([disabled])") ?? []];
|
|
@@ -56,30 +56,30 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
56
56
|
const _ = t.indexOf(document.activeElement), d = p.key === "Home" ? 0 : p.key === "End" ? t.length - 1 : p.key === "ArrowDown" ? Math.min(_ + 1, t.length - 1) : Math.max(_ - 1, 0);
|
|
57
57
|
p.key === "ArrowUp" && _ <= 0 ? x.value?.querySelector("[data-option-search]")?.focus() : t[_ === -1 && p.key === "ArrowDown" ? 0 : d]?.focus(), p.preventDefault();
|
|
58
58
|
}
|
|
59
|
-
const k = g(() => e.presentation === "grouped"), O = g(() => e.status === "loading"),
|
|
60
|
-
return
|
|
61
|
-
|
|
59
|
+
const k = g(() => e.presentation === "grouped"), O = g(() => e.status === "loading"), T = g(() => e.status === "failed");
|
|
60
|
+
return B(() => e.status, (p, l) => {
|
|
61
|
+
l !== "loading" || p === "loading" || Q(() => {
|
|
62
62
|
const t = document.activeElement;
|
|
63
63
|
(!t || t === document.body || t.getAttribute("role") === "dialog" && !!x.value && t.contains(x.value)) && x.value?.querySelector("[data-option-search], [data-option]:not([disabled])")?.focus({ preventScroll: !0 });
|
|
64
64
|
});
|
|
65
|
-
}), (p,
|
|
65
|
+
}), (p, l) => (a(), f("div", {
|
|
66
66
|
ref_key: "root",
|
|
67
67
|
ref: x,
|
|
68
68
|
"data-test": "option-list",
|
|
69
69
|
onKeydown: w
|
|
70
70
|
}, [
|
|
71
|
-
|
|
71
|
+
s.value ? (a(), f("div", {
|
|
72
72
|
key: 0,
|
|
73
73
|
class: b(["sticky top-0 z-10 pb-2", k.value ? "bg-surface-page pt-1" : "bg-surface-cell"])
|
|
74
74
|
}, [
|
|
75
|
-
r("label",
|
|
76
|
-
|
|
75
|
+
r("label", fe, [
|
|
76
|
+
q(o(z), {
|
|
77
77
|
name: "search",
|
|
78
78
|
size: 16,
|
|
79
79
|
class: "shrink-0"
|
|
80
80
|
}),
|
|
81
|
-
|
|
82
|
-
"onUpdate:modelValue":
|
|
81
|
+
X(r("input", {
|
|
82
|
+
"onUpdate:modelValue": l[0] || (l[0] = (t) => n.value = t),
|
|
83
83
|
"data-option-search": "",
|
|
84
84
|
type: "search",
|
|
85
85
|
enterkeyhint: "search",
|
|
@@ -89,8 +89,8 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
89
89
|
"aria-label": o(m)("core.form.select.search"),
|
|
90
90
|
placeholder: o(m)("core.form.select.search"),
|
|
91
91
|
class: "min-w-0 flex-1 border-0 bg-transparent p-0 text-body text-content-strong outline-none placeholder:text-content-disabled focus:ring-0"
|
|
92
|
-
}, null, 8,
|
|
93
|
-
[
|
|
92
|
+
}, null, 8, ve), [
|
|
93
|
+
[Y, n.value]
|
|
94
94
|
])
|
|
95
95
|
])
|
|
96
96
|
], 2)) : v("", !0),
|
|
@@ -100,7 +100,7 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
100
100
|
"aria-multiselectable": e.multiple || void 0,
|
|
101
101
|
"aria-busy": O.value || void 0
|
|
102
102
|
}, [
|
|
103
|
-
e.noneLabel &&
|
|
103
|
+
e.noneLabel && n.value === "" ? (a(), f("li", ge, [
|
|
104
104
|
r("ul", {
|
|
105
105
|
role: "group",
|
|
106
106
|
class: b(k.value ? "rounded-group bg-surface-cell shadow-group" : "")
|
|
@@ -113,54 +113,54 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
113
113
|
type: "button",
|
|
114
114
|
"data-option": "",
|
|
115
115
|
class: b(["flex min-h-row w-full cursor-pointer items-center gap-3 px-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill", [u.value ? "text-content-strong" : "text-content-muted", k.value ? "rounded-group" : "rounded-control"]]),
|
|
116
|
-
onClick:
|
|
116
|
+
onClick: l[1] || (l[1] = (t) => y("select", null))
|
|
117
117
|
}, [
|
|
118
|
-
r("span",
|
|
119
|
-
u.value ? (
|
|
118
|
+
r("span", ye, $(e.noneLabel), 1),
|
|
119
|
+
u.value ? (a(), V(o(z), {
|
|
120
120
|
key: 0,
|
|
121
121
|
name: "checkCustom",
|
|
122
122
|
size: 18,
|
|
123
123
|
class: "shrink-0 text-content-link"
|
|
124
124
|
})) : v("", !0)
|
|
125
125
|
], 2)
|
|
126
|
-
], 8,
|
|
126
|
+
], 8, he)
|
|
127
127
|
], 2)
|
|
128
128
|
])) : v("", !0),
|
|
129
|
-
O.value ? (
|
|
130
|
-
|
|
129
|
+
O.value ? (a(), f("li", xe, [
|
|
130
|
+
q(o(z), {
|
|
131
131
|
name: "loader4Line",
|
|
132
132
|
size: 16,
|
|
133
133
|
class: "shrink-0 animate-spin text-content-link"
|
|
134
134
|
}),
|
|
135
|
-
r("span",
|
|
136
|
-
])) :
|
|
137
|
-
r("span",
|
|
135
|
+
r("span", ke, $(o(m)("core.form.select.loading")), 1)
|
|
136
|
+
])) : T.value ? (a(), f("li", _e, [
|
|
137
|
+
r("span", we, $(o(m)("core.form.select.load_failed")), 1),
|
|
138
138
|
r("button", {
|
|
139
139
|
type: "button",
|
|
140
140
|
"data-option": "",
|
|
141
141
|
"data-test": "options-retry",
|
|
142
142
|
class: "-ml-2 cursor-pointer rounded-control px-2 py-1 text-subheadline font-medium text-content-link hover:bg-fill focus-visible:bg-fill focus-visible:outline-none",
|
|
143
|
-
onClick:
|
|
143
|
+
onClick: l[2] || (l[2] = (t) => y("retry"))
|
|
144
144
|
}, $(o(m)("core.actions.retry")), 1)
|
|
145
145
|
])) : v("", !0),
|
|
146
|
-
(
|
|
146
|
+
(a(!0), f(R, null, H(C.value, (t, _) => (a(), f("li", {
|
|
147
147
|
key: t.title ?? _,
|
|
148
148
|
role: "presentation"
|
|
149
149
|
}, [
|
|
150
|
-
t.title ? (
|
|
150
|
+
t.title ? (a(), f("p", {
|
|
151
151
|
key: 0,
|
|
152
152
|
id: `${o(c)}-${_}`,
|
|
153
153
|
class: "px-row-inset pb-1.5 text-footnote uppercase tracking-wide text-content-muted"
|
|
154
|
-
}, $(t.title), 9,
|
|
154
|
+
}, $(t.title), 9, $e)) : v("", !0),
|
|
155
155
|
r("ul", {
|
|
156
156
|
role: "group",
|
|
157
157
|
"aria-labelledby": t.title ? `${o(c)}-${_}` : void 0,
|
|
158
158
|
class: b(k.value ? "rounded-group bg-surface-cell shadow-group" : "")
|
|
159
159
|
}, [
|
|
160
|
-
(
|
|
160
|
+
(a(!0), f(R, null, H(t.options, (d) => (a(), f("li", {
|
|
161
161
|
key: String(d.value),
|
|
162
162
|
role: "option",
|
|
163
|
-
"aria-selected":
|
|
163
|
+
"aria-selected": L(d),
|
|
164
164
|
class: "group/option"
|
|
165
165
|
}, [
|
|
166
166
|
r("button", {
|
|
@@ -171,11 +171,11 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
171
171
|
class: b(["flex w-full cursor-pointer items-stretch gap-3 pl-row-inset text-left text-body hover:bg-fill focus-visible:bg-fill focus-visible:outline-none active:bg-fill disabled:cursor-not-allowed disabled:opacity-45", k.value ? "group-first/option:rounded-t-group group-last/option:rounded-b-group" : "rounded-control"]),
|
|
172
172
|
onClick: (E) => y("select", d.value)
|
|
173
173
|
}, [
|
|
174
|
-
e.multiple ? (
|
|
174
|
+
e.multiple ? (a(), f("span", Le, [
|
|
175
175
|
r("span", {
|
|
176
|
-
class: b(["flex size-5.5 items-center justify-center rounded-full border",
|
|
176
|
+
class: b(["flex size-5.5 items-center justify-center rounded-full border", L(d) ? "border-control-on bg-control-on text-white" : "border-border-control"])
|
|
177
177
|
}, [
|
|
178
|
-
|
|
178
|
+
L(d) ? (a(), V(o(z), {
|
|
179
179
|
key: 0,
|
|
180
180
|
name: "checkCustom",
|
|
181
181
|
size: 12
|
|
@@ -185,49 +185,49 @@ const me = { class: "flex min-h-9 items-center gap-1.5 rounded-control bg-fill p
|
|
|
185
185
|
r("span", {
|
|
186
186
|
class: b(["flex min-h-row min-w-0 flex-1 items-center gap-3 py-2 pr-row-inset", k.value ? "border-t border-border-separator group-first/option:border-t-0" : ""])
|
|
187
187
|
}, [
|
|
188
|
-
d.dot ? (
|
|
188
|
+
d.dot ? (a(), V(P, {
|
|
189
189
|
key: 0,
|
|
190
190
|
tone: d.dot,
|
|
191
191
|
class: "-mr-1.5"
|
|
192
192
|
}, null, 8, ["tone"])) : v("", !0),
|
|
193
|
-
r("span",
|
|
194
|
-
d.description ? (
|
|
195
|
-
!e.multiple &&
|
|
193
|
+
r("span", De, $(d.label), 1),
|
|
194
|
+
d.description ? (a(), f("span", qe, $(d.description), 1)) : v("", !0),
|
|
195
|
+
!e.multiple && L(d) ? (a(), V(o(z), {
|
|
196
196
|
key: 2,
|
|
197
197
|
name: "checkCustom",
|
|
198
198
|
size: 18,
|
|
199
199
|
class: "shrink-0 text-content-link"
|
|
200
200
|
})) : v("", !0)
|
|
201
201
|
], 2)
|
|
202
|
-
], 10,
|
|
203
|
-
], 8,
|
|
204
|
-
], 10,
|
|
202
|
+
], 10, Ve)
|
|
203
|
+
], 8, Se))), 128))
|
|
204
|
+
], 10, Ce)
|
|
205
205
|
]))), 128)),
|
|
206
|
-
C.value.length === 0 && !O.value && !
|
|
207
|
-
], 10,
|
|
206
|
+
C.value.length === 0 && !O.value && !T.value ? (a(), f("li", ze, $(o(m)("core.form.select.no_matches")), 1)) : v("", !0)
|
|
207
|
+
], 10, be)
|
|
208
208
|
], 544));
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
|
-
function
|
|
212
|
-
const h =
|
|
211
|
+
function We(i) {
|
|
212
|
+
const h = me(), e = i.for !== void 0;
|
|
213
213
|
let y = 0;
|
|
214
214
|
function m() {
|
|
215
|
-
const
|
|
216
|
-
if (e &&
|
|
215
|
+
const n = i.for?.();
|
|
216
|
+
if (e && n == null) {
|
|
217
217
|
h.cancel(), h.items.value = [], h.status.value = "idle";
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
220
|
h.run(
|
|
221
|
-
(c) => e ? i.load(
|
|
221
|
+
(c) => e ? i.load(n, { signal: c }) : i.load({ signal: c })
|
|
222
222
|
);
|
|
223
223
|
}
|
|
224
|
-
return
|
|
224
|
+
return B(
|
|
225
225
|
() => i.for?.(),
|
|
226
|
-
(
|
|
226
|
+
(n, c) => {
|
|
227
227
|
c != null && y++, m();
|
|
228
228
|
},
|
|
229
229
|
{ immediate: !0 }
|
|
230
|
-
),
|
|
230
|
+
), Z(h.cancel), {
|
|
231
231
|
get status() {
|
|
232
232
|
return h.status.value;
|
|
233
233
|
},
|
|
@@ -240,33 +240,33 @@ function Ke(i) {
|
|
|
240
240
|
reload: m
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
|
-
const A = (i) => Array.isArray(i),
|
|
244
|
-
function
|
|
243
|
+
const A = (i) => Array.isArray(i), Ae = [];
|
|
244
|
+
function Oe(i, h) {
|
|
245
245
|
const e = g(() => {
|
|
246
|
-
const
|
|
247
|
-
return A(
|
|
246
|
+
const s = i();
|
|
247
|
+
return A(s) ? s : s.options;
|
|
248
248
|
}), y = g(() => {
|
|
249
|
-
const
|
|
250
|
-
return A(
|
|
251
|
-
}), m = g(() => y.value === "loading" || y.value === "failed" ?
|
|
249
|
+
const s = i();
|
|
250
|
+
return A(s) ? "loaded" : s.status;
|
|
251
|
+
}), m = g(() => y.value === "loading" || y.value === "failed" ? Ae : e.value), n = g(() => y.value === "loading"), c = i();
|
|
252
252
|
let x = A(c) ? 0 : c.generation;
|
|
253
|
-
return
|
|
253
|
+
return B(
|
|
254
254
|
() => {
|
|
255
|
-
const
|
|
256
|
-
return A(
|
|
255
|
+
const s = i();
|
|
256
|
+
return A(s) ? null : s.status === "loaded" || s.status === "idle" ? s.options : null;
|
|
257
257
|
},
|
|
258
|
-
(
|
|
258
|
+
(s) => {
|
|
259
259
|
const C = i();
|
|
260
|
-
|
|
260
|
+
s === null || A(C) || C.generation === x || (x = C.generation, h(s));
|
|
261
261
|
}
|
|
262
|
-
), { known: e, rows: m, status: y, loading:
|
|
263
|
-
const
|
|
264
|
-
A(
|
|
262
|
+
), { known: e, rows: m, status: y, loading: n, reload: () => {
|
|
263
|
+
const s = i();
|
|
264
|
+
A(s) || s.reload();
|
|
265
265
|
} };
|
|
266
266
|
}
|
|
267
|
-
const
|
|
267
|
+
const Te = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid", "aria-describedby", "aria-busy"], Fe = ["id", "disabled", "aria-required", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], Be = { class: "max-h-72 overflow-y-auto" }, Je = /* @__PURE__ */ G({
|
|
268
268
|
__name: "SelectField",
|
|
269
|
-
props: /* @__PURE__ */
|
|
269
|
+
props: /* @__PURE__ */ te({
|
|
270
270
|
label: {},
|
|
271
271
|
labelHidden: { type: Boolean },
|
|
272
272
|
hint: {},
|
|
@@ -283,61 +283,61 @@ const Oe = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid",
|
|
|
283
283
|
clearable: {},
|
|
284
284
|
modelValue: {},
|
|
285
285
|
searchFrom: {}
|
|
286
|
-
}, { ...
|
|
286
|
+
}, { ...de, selected: null, placeholder: void 0, clearable: void 0, modelValue: void 0, searchFrom: 9 }),
|
|
287
287
|
emits: ["update:modelValue"],
|
|
288
288
|
setup(i, { emit: h }) {
|
|
289
|
-
const e = i, y = h, m =
|
|
290
|
-
|
|
291
|
-
const
|
|
289
|
+
const e = i, y = h, m = N(e.modelValue ?? null);
|
|
290
|
+
B(() => e.modelValue, (l) => m.value = l ?? null);
|
|
291
|
+
const n = g({
|
|
292
292
|
get: () => m.value,
|
|
293
|
-
set: (
|
|
294
|
-
m.value =
|
|
293
|
+
set: (l) => {
|
|
294
|
+
m.value = l, y("update:modelValue", l);
|
|
295
295
|
}
|
|
296
|
-
}), { t: c } =
|
|
297
|
-
|
|
298
|
-
}), w = g(() => u.known.value.find((
|
|
299
|
-
function
|
|
300
|
-
|
|
296
|
+
}), { t: c } = W(), x = le(), s = !!se(), C = K("sheet"), L = N(!1), u = Oe(() => e.options, (l) => {
|
|
297
|
+
n.value !== null && !l.some((t) => t.value === n.value) && (n.value = null);
|
|
298
|
+
}), w = g(() => u.known.value.find((l) => l.value === n.value) ?? (e.selected?.value === n.value ? e.selected : null)), k = g(() => e.placeholder ?? c("core.form.select.choose")), O = re("popup", () => e.error ? "error" : e.disabled ? "locked" : "rest");
|
|
299
|
+
function T(l) {
|
|
300
|
+
n.value = l, C.value?.dismiss();
|
|
301
301
|
}
|
|
302
302
|
const p = g(() => [
|
|
303
303
|
"flex max-w-full min-w-0 items-center gap-1.5 py-1 pl-2.5 pr-2 text-body focus-visible:outline-none",
|
|
304
|
-
|
|
304
|
+
s ? "compact:pl-0 compact:pr-0" : "",
|
|
305
305
|
e.disabled ? "cursor-not-allowed" : "cursor-pointer"
|
|
306
306
|
]);
|
|
307
|
-
return (
|
|
307
|
+
return (l, t) => (a(), V(ie, I(o(ue)(e), {
|
|
308
308
|
value: w.value?.label ?? null
|
|
309
|
-
}), {
|
|
310
|
-
default:
|
|
309
|
+
}), M({
|
|
310
|
+
default: S(({ id: _, describedby: d, invalid: E }) => [
|
|
311
311
|
r("div", {
|
|
312
312
|
class: b(["inline-flex max-w-full min-w-0", o(O)])
|
|
313
313
|
}, [
|
|
314
|
-
o(x) ? (
|
|
314
|
+
o(x) ? (a(), f("button", {
|
|
315
315
|
key: 0,
|
|
316
316
|
id: _,
|
|
317
317
|
type: "button",
|
|
318
318
|
disabled: e.disabled,
|
|
319
319
|
"aria-haspopup": "dialog",
|
|
320
|
-
"aria-expanded":
|
|
320
|
+
"aria-expanded": L.value,
|
|
321
321
|
"aria-required": e.required || void 0,
|
|
322
322
|
"aria-invalid": E || void 0,
|
|
323
323
|
"aria-describedby": d,
|
|
324
324
|
"aria-busy": o(u).loading.value || void 0,
|
|
325
325
|
class: b(p.value),
|
|
326
|
-
onClick: t[0] || (t[0] = (
|
|
326
|
+
onClick: t[0] || (t[0] = (D) => C.value?.present())
|
|
327
327
|
}, [
|
|
328
|
-
w.value?.dot ? (
|
|
328
|
+
w.value?.dot ? (a(), V(P, {
|
|
329
329
|
key: 0,
|
|
330
330
|
tone: w.value.dot
|
|
331
331
|
}, null, 8, ["tone"])) : v("", !0),
|
|
332
332
|
r("span", {
|
|
333
|
-
class: b(["min-w-0 truncate", w.value ?
|
|
333
|
+
class: b(["min-w-0 truncate", w.value ? s ? "text-content-strong compact:text-content-muted" : "text-content-strong" : "text-content-disabled"])
|
|
334
334
|
}, $(w.value?.label ?? k.value), 3),
|
|
335
|
-
|
|
335
|
+
q(o(z), {
|
|
336
336
|
name: o(u).loading.value ? "loader4Line" : "expandUpDownLine",
|
|
337
337
|
size: 14,
|
|
338
338
|
class: b(["shrink-0 text-content-muted", o(u).loading.value ? "animate-spin" : ""])
|
|
339
339
|
}, null, 8, ["name", "class"])
|
|
340
|
-
], 10,
|
|
340
|
+
], 10, Te)) : (a(), V(ne, {
|
|
341
341
|
key: 1,
|
|
342
342
|
label: e.label ?? k.value,
|
|
343
343
|
width: "md",
|
|
@@ -345,11 +345,11 @@ const Oe = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid",
|
|
|
345
345
|
placement: "bottom-start",
|
|
346
346
|
arrow: !1
|
|
347
347
|
}, {
|
|
348
|
-
trigger:
|
|
349
|
-
r("button",
|
|
348
|
+
trigger: S(({ toggle: D, attrs: F }) => [
|
|
349
|
+
r("button", I({
|
|
350
350
|
id: _,
|
|
351
351
|
type: "button"
|
|
352
|
-
},
|
|
352
|
+
}, F, {
|
|
353
353
|
"aria-haspopup": "listbox",
|
|
354
354
|
disabled: e.disabled,
|
|
355
355
|
"aria-required": e.required || void 0,
|
|
@@ -357,72 +357,72 @@ const Oe = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid",
|
|
|
357
357
|
"aria-describedby": d,
|
|
358
358
|
"aria-busy": o(u).loading.value || void 0,
|
|
359
359
|
class: p.value,
|
|
360
|
-
onClick:
|
|
360
|
+
onClick: D
|
|
361
361
|
}), [
|
|
362
|
-
w.value?.dot ? (
|
|
362
|
+
w.value?.dot ? (a(), V(P, {
|
|
363
363
|
key: 0,
|
|
364
364
|
tone: w.value.dot
|
|
365
365
|
}, null, 8, ["tone"])) : v("", !0),
|
|
366
366
|
r("span", {
|
|
367
367
|
class: b(["min-w-0 truncate", w.value ? "text-content-strong" : "text-content-disabled"])
|
|
368
368
|
}, $(w.value?.label ?? k.value), 3),
|
|
369
|
-
|
|
369
|
+
q(o(z), {
|
|
370
370
|
name: o(u).loading.value ? "loader4Line" : "expandUpDownLine",
|
|
371
371
|
size: 14,
|
|
372
372
|
class: b(["shrink-0 text-content-muted", o(u).loading.value ? "animate-spin" : ""])
|
|
373
373
|
}, null, 8, ["name", "class"])
|
|
374
374
|
], 16, Fe)
|
|
375
375
|
]),
|
|
376
|
-
default:
|
|
376
|
+
default: S(({ dismiss: D }) => [
|
|
377
377
|
r("div", Be, [
|
|
378
|
-
|
|
378
|
+
q(j, {
|
|
379
379
|
options: o(u).rows.value,
|
|
380
380
|
status: o(u).status.value,
|
|
381
|
-
"model-value":
|
|
381
|
+
"model-value": n.value,
|
|
382
382
|
"search-from": e.searchFrom,
|
|
383
383
|
"none-label": e.clearable ? o(c)("core.form.select.clear") : void 0,
|
|
384
384
|
presentation: "plain",
|
|
385
|
-
onSelect: (
|
|
386
|
-
|
|
385
|
+
onSelect: (F) => {
|
|
386
|
+
n.value = F, D();
|
|
387
387
|
},
|
|
388
|
-
onRetry: t[1] || (t[1] = (
|
|
388
|
+
onRetry: t[1] || (t[1] = (F) => o(u).reload())
|
|
389
389
|
}, null, 8, ["options", "status", "model-value", "search-from", "none-label", "onSelect"])
|
|
390
390
|
])
|
|
391
391
|
]),
|
|
392
392
|
_: 2
|
|
393
393
|
}, 1032, ["label"]))
|
|
394
394
|
], 2),
|
|
395
|
-
o(x) ? (
|
|
395
|
+
o(x) ? (a(), V(ae, {
|
|
396
396
|
key: 0,
|
|
397
397
|
ref_key: "sheet",
|
|
398
398
|
ref: C,
|
|
399
399
|
title: e.label ?? k.value,
|
|
400
400
|
grouped: "",
|
|
401
|
-
onPresented: t[4] || (t[4] = (
|
|
402
|
-
onDismissed: t[5] || (t[5] = (
|
|
403
|
-
},
|
|
404
|
-
default:
|
|
405
|
-
|
|
401
|
+
onPresented: t[4] || (t[4] = (D) => L.value = !0),
|
|
402
|
+
onDismissed: t[5] || (t[5] = (D) => L.value = !1)
|
|
403
|
+
}, M({
|
|
404
|
+
default: S(() => [
|
|
405
|
+
q(j, {
|
|
406
406
|
options: o(u).rows.value,
|
|
407
407
|
status: o(u).status.value,
|
|
408
|
-
"model-value":
|
|
408
|
+
"model-value": n.value,
|
|
409
409
|
"search-from": e.searchFrom,
|
|
410
410
|
"none-label": e.clearable ? o(c)("core.form.select.clear") : void 0,
|
|
411
|
-
onSelect:
|
|
412
|
-
onRetry: t[2] || (t[2] = (
|
|
411
|
+
onSelect: T,
|
|
412
|
+
onRetry: t[2] || (t[2] = (D) => o(u).reload())
|
|
413
413
|
}, null, 8, ["options", "status", "model-value", "search-from", "none-label"])
|
|
414
414
|
]),
|
|
415
415
|
_: 2
|
|
416
416
|
}, [
|
|
417
|
-
e.clearable &&
|
|
417
|
+
e.clearable && n.value !== null ? {
|
|
418
418
|
name: "footer",
|
|
419
|
-
fn:
|
|
420
|
-
|
|
419
|
+
fn: S(() => [
|
|
420
|
+
q(oe, {
|
|
421
421
|
prominence: "plain",
|
|
422
|
-
onClick: t[3] || (t[3] = (
|
|
422
|
+
onClick: t[3] || (t[3] = (D) => T(null))
|
|
423
423
|
}, {
|
|
424
|
-
default:
|
|
425
|
-
|
|
424
|
+
default: S(() => [
|
|
425
|
+
ee($(o(c)("core.form.select.clear")), 1)
|
|
426
426
|
]),
|
|
427
427
|
_: 1
|
|
428
428
|
})
|
|
@@ -431,13 +431,35 @@ const Oe = ["id", "disabled", "aria-expanded", "aria-required", "aria-invalid",
|
|
|
431
431
|
} : void 0
|
|
432
432
|
]), 1032, ["title"])) : v("", !0)
|
|
433
433
|
]),
|
|
434
|
-
_:
|
|
435
|
-
},
|
|
434
|
+
_: 2
|
|
435
|
+
}, [
|
|
436
|
+
l.$slots.trailing ? {
|
|
437
|
+
name: "trailing",
|
|
438
|
+
fn: S(() => [
|
|
439
|
+
U(l.$slots, "trailing")
|
|
440
|
+
]),
|
|
441
|
+
key: "0"
|
|
442
|
+
} : void 0,
|
|
443
|
+
l.$slots.labelTrailing ? {
|
|
444
|
+
name: "labelTrailing",
|
|
445
|
+
fn: S(() => [
|
|
446
|
+
U(l.$slots, "labelTrailing")
|
|
447
|
+
]),
|
|
448
|
+
key: "1"
|
|
449
|
+
} : void 0,
|
|
450
|
+
l.$slots.readonly ? {
|
|
451
|
+
name: "readonly",
|
|
452
|
+
fn: S(() => [
|
|
453
|
+
U(l.$slots, "readonly")
|
|
454
|
+
]),
|
|
455
|
+
key: "2"
|
|
456
|
+
} : void 0
|
|
457
|
+
]), 1040, ["value"]));
|
|
436
458
|
}
|
|
437
459
|
});
|
|
438
460
|
export {
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
461
|
+
Je as _,
|
|
462
|
+
j as a,
|
|
463
|
+
We as b,
|
|
464
|
+
Oe as u
|
|
443
465
|
};
|
|
@@ -3,8 +3,8 @@ import { useI18n as $ } from "vue-i18n";
|
|
|
3
3
|
import { _ as C } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
4
4
|
import { _ as B } from "./IconTile.vue_vue_type_script_setup_true_lang-_FXvaj93.js";
|
|
5
5
|
import { u as E } from "./format-B8mJm946.js";
|
|
6
|
-
import { _ as N } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { e as f } from "./control-
|
|
6
|
+
import { _ as N } from "./FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
7
|
+
import { e as f } from "./control-B_Nwtmag.js";
|
|
8
8
|
import { _ as y } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
|
|
9
9
|
const V = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-0.5" }, L = {
|
|
10
10
|
key: 0,
|
|
@@ -2,14 +2,14 @@ import { defineComponent as x, useTemplateRef as v, computed as w, ref as $, ope
|
|
|
2
2
|
import { useI18n as N } from "vue-i18n";
|
|
3
3
|
import { _ as q } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
4
4
|
import { u as A } from "./describeError-B-NMa--w.js";
|
|
5
|
-
import { P as D, b as L, e as O, i as g, d as T } from "./index-
|
|
5
|
+
import { P as D, b as L, e as O, i as g, d as T } from "./index-Bq96L43f.js";
|
|
6
6
|
import { _ as k } from "./AlertDialog.vue_vue_type_script_setup_true_lang-whA4WLdl.js";
|
|
7
7
|
import { t as b } from "./toast-CqSDTWRX.js";
|
|
8
8
|
import { u as V } from "./platform-q3cjODLx.js";
|
|
9
9
|
import { b as I } from "./routeResource-DlTsGTg_.js";
|
|
10
10
|
import { _ as j } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
11
11
|
import { _ as z } from "./SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js";
|
|
12
|
-
import { _ as F } from "./SessionList.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { _ as F } from "./SessionList.vue_vue_type_script_setup_true_lang-DoUo68xE.js";
|
|
13
13
|
const G = {
|
|
14
14
|
class: "flex min-w-0 flex-col gap-group-gap",
|
|
15
15
|
"data-person-sessions": ""
|
|
@@ -6,16 +6,16 @@ import { t as T } from "./toast-CqSDTWRX.js";
|
|
|
6
6
|
import { u as N } from "./fieldMessages-DV6sESpn.js";
|
|
7
7
|
import { _ as A } from "./AsyncSection.vue_vue_type_script_setup_true_lang-Blj6KgCr.js";
|
|
8
8
|
import { _ as O } from "./Panel.vue_vue_type_script_setup_true_lang-BA0u_DtS.js";
|
|
9
|
-
import { _ as R } from "./FormGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { e as G } from "./control-
|
|
11
|
-
import { _ as Z } from "./SwitchField.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { _ as R } from "./FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
10
|
+
import { e as G } from "./control-B_Nwtmag.js";
|
|
11
|
+
import { _ as Z } from "./SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js";
|
|
12
12
|
import { _ as J } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
13
13
|
import { u as K } from "./FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
14
|
-
import { _ as W } from "./FormView.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as E } from "./TimeField.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { _ as W } from "./FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js";
|
|
15
|
+
import { _ as E } from "./TimeField.vue_vue_type_script_setup_true_lang-pAdLPYXA.js";
|
|
16
16
|
import { a as k, n as X } from "./useTypedEntry-aTfPBAhw.js";
|
|
17
17
|
import { _ as Y } from "./PanelActions.vue_vue_type_script_setup_true_lang-E9VdIGkf.js";
|
|
18
|
-
import { n as q } from "./index-
|
|
18
|
+
import { n as q } from "./index-CWeNiBX6.js";
|
|
19
19
|
import { u as ee } from "./platform-q3cjODLx.js";
|
|
20
20
|
import { u as te } from "./useLoad-M7V-AVwR.js";
|
|
21
21
|
function ne() {
|