@wssto2/vue-core 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Activity-CVO3sJwy.js → Activity-DnFB6WXf.js} +3 -3
- package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js} +64 -63
- package/dist/{Changes-Bzvl3cEx.js → Changes-DMrQYv2e.js} +2 -2
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CD5zZ29o.js → CollectionPage.vue_vue_type_script_setup_true_lang-CVnZzaBm.js} +4 -4
- package/dist/{DataTable.vue_vue_type_script_setup_true_lang-ChS9ULwk.js → DataTable.vue_vue_type_script_setup_true_lang-Wuvo-l_z.js} +1 -1
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-BufoFwVQ.js → DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js} +2 -2
- package/dist/{DeadLetters-DmwUtgf9.js → DeadLetters-BF9PS4mA.js} +3 -3
- package/dist/{General-CUEjJBD4.js → General-yInbmj6I.js} +3 -3
- package/dist/{NewRolePage-Cyn-oV6r.js → NewRolePage-09C3P6fE.js} +3 -3
- package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a8kN3A7k.js → NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js} +1 -1
- package/dist/{ProfilePage-I74SQBFO.js → ProfilePage-CvV44C0m.js} +6 -6
- package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js → RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js} +1 -1
- package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js → ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js} +1 -1
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-Ce6wjptT.js → RoleEditor.vue_vue_type_script_setup_true_lang-BqWoby16.js} +1 -1
- package/dist/{RolePage-DWQP3qQl.js → RolePage-DuIFjSKH.js} +5 -5
- package/dist/{RolesPage-BeEsHIQ2.js → RolesPage-BzqBqils.js} +2 -2
- package/dist/{SectionList.vue_vue_type_script_setup_true_lang-B0p_8xQG.js → SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js} +1 -1
- package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-D5Cnb4_O.js → SectionNavigator.vue_vue_type_script_setup_true_lang-CW81A_bn.js} +2 -2
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-DoUo68xE.js → SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js} +1 -1
- package/dist/{Sessions-D8IXcb5M.js → Sessions-_qmODKw2.js} +2 -2
- package/dist/{SettingsPage-DRQP2nrH.js → SettingsPage-Bz48sO08.js} +5 -5
- package/dist/{SignIn-CAZkovhb.js → SignIn-DJsTGQ79.js} +2 -2
- package/dist/{SignInPage-D-49oLY3.js → SignInPage-Bb78MIDk.js} +1 -1
- package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CIv34nRn.js → SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js} +1 -1
- package/dist/{SignIns-BtNfgMLc.js → SignIns-yRjJrf47.js} +2 -2
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-pAdLPYXA.js → TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js} +2 -2
- package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js → Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js} +1 -1
- package/dist/{UserRecord-BSbNuRFi.js → UserRecord-4L0FrCty.js} +6 -6
- package/dist/{UsersList-DPHxcaDm.js → UsersList-ww_-FoAq.js} +6 -6
- package/dist/access/index.js +1 -1
- package/dist/app/index.js +1 -1
- package/dist/collection/index.js +3 -3
- package/dist/content/index.js +1 -1
- package/dist/{fieldMessages-DV6sESpn.js → fieldMessages-6HVzSDqG.js} +1 -1
- package/dist/form/CommandDialog.vue.d.ts +3 -0
- package/dist/form/index.js +242 -241
- package/dist/format/index.js +1 -1
- package/dist/format-D8X4zsx6.js +78 -0
- package/dist/identity/index.js +1 -1
- package/dist/{index-CWeNiBX6.js → index-C6vCe149.js} +3 -3
- package/dist/{index-yKIOaisE.js → index-DW9gyWL1.js} +4 -4
- package/dist/{index-Bq96L43f.js → index-JjALCpwi.js} +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal/intlLocale.d.ts +2 -0
- package/dist/intlLocale-CeRU44qJ.js +4 -0
- package/dist/notifications/index.js +1 -1
- package/dist/page/index.js +5 -5
- package/dist/phone/index.js +112 -111
- package/dist/resource/index.js +1 -1
- package/dist/{rowLayout-D1cYQghV.js → rowLayout-BFz4Kdoy.js} +2 -2
- package/dist/{status-DzmySsWw.js → status-Cz54-7z7.js} +1 -1
- package/dist/testing/index.js +1 -1
- package/dist/{useCommand-B-N6HJOz.js → useCommand-YN9EMb7s.js} +41 -38
- package/dist/{useTypedEntry-aTfPBAhw.js → useTypedEntry-C7k7Dyl-.js} +237 -236
- package/package.json +1 -1
- package/dist/format-B8mJm946.js +0 -77
package/dist/form/index.js
CHANGED
|
@@ -1,62 +1,63 @@
|
|
|
1
1
|
import { _ as Me, s as Pe, c as Se, f as Qe } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
2
|
-
import { E as
|
|
3
|
-
import { f as ze } from "../useCommand-
|
|
4
|
-
import { _ as
|
|
2
|
+
import { E as Mo, u as Oo, a as jo } from "../FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
3
|
+
import { f as ze } from "../useCommand-YN9EMb7s.js";
|
|
4
|
+
import { _ as Eo, a as Io, u as Go } from "../useCommand-YN9EMb7s.js";
|
|
5
5
|
import { ref as N, computed as x, defineComponent as K, openBlock as i, createBlock as q, mergeProps as J, unref as n, createSlots as re, withCtx as m, createElementVNode as b, normalizeClass as R, createElementBlock as h, Fragment as se, renderList as xe, createVNode as M, createCommentVNode as D, toDisplayString as C, renderSlot as z, mergeDefaults as ue, useModel as oe, useId as Oe, withKeys as Ce, withModifiers as be, createTextVNode as Y, mergeModels as ne, useTemplateRef as A, shallowRef as De, watch as ie, nextTick as ke, provide as Ve, inject as Ze, onBeforeUnmount as je, onMounted as ot, toRef as nt, toValue as qe, getCurrentScope as st, onScopeDispose as rt, shallowReactive as Ae, normalizeStyle as it, resolveDynamicComponent as ut } from "vue";
|
|
6
6
|
import { a as Re } from "../leaveGuard-Cc8yeLxM.js";
|
|
7
|
-
import { M as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { u as
|
|
7
|
+
import { M as Ko, c as Po, i as Ao, l as Ho, u as Uo } from "../leaveGuard-Cc8yeLxM.js";
|
|
8
|
+
import { _ as Wo } from "../LeaveGuardRoot.vue_vue_type_script_setup_true_lang-Cv7KlA5y.js";
|
|
9
|
+
import { u as Xo } from "../useResourceForm-CP2lCwmD.js";
|
|
10
10
|
import { _ as X } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
11
11
|
import { u as et, _ as ye, f as de, b as ce, a as tt, c as Ee, e as dt, h as ct, i as ft, d as mt } from "../control-B_Nwtmag.js";
|
|
12
12
|
import { useI18n as Z } from "vue-i18n";
|
|
13
13
|
import { b as vt } from "../controlSurface-t7OEFESJ.js";
|
|
14
14
|
import { a as pt } from "../TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js";
|
|
15
|
-
import { _ as
|
|
15
|
+
import { _ as Zo } from "../TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js";
|
|
16
16
|
import { u as bt, l as gt } from "../suggestions-BxMm6MQA.js";
|
|
17
|
-
import { r as
|
|
18
|
-
import { s as _e, u as He, i as yt, o as $e, e as Fe, k as ht, _ as kt, l as xt, c as wt, b as _t, t as Te, g as $t, q as St } from "../useTypedEntry-
|
|
19
|
-
import { u as Ct, a as Ft, s as Bt } from "../DateField.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { _ as
|
|
17
|
+
import { r as tn } from "../suggestions-BxMm6MQA.js";
|
|
18
|
+
import { s as _e, u as He, i as yt, o as $e, e as Fe, k as ht, _ as kt, l as xt, c as wt, b as _t, t as Te, g as $t, q as St } from "../useTypedEntry-C7k7Dyl-.js";
|
|
19
|
+
import { u as Ct, a as Ft, s as Bt } from "../DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js";
|
|
20
|
+
import { _ as ln } from "../DateField.vue_vue_type_script_setup_true_lang-BIXzNzYo.js";
|
|
21
21
|
import { _ as at } from "../DateButton.vue_vue_type_script_setup_true_lang-EcqrfWKz.js";
|
|
22
|
-
import { u as Lt } from "../format-
|
|
22
|
+
import { u as Lt } from "../format-D8X4zsx6.js";
|
|
23
23
|
import { u as Ie } from "../mediaQuery-CygcXmFW.js";
|
|
24
24
|
import { _ as Ge } from "../Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
|
|
25
|
-
import { u as Tt } from "../TimeField.vue_vue_type_script_setup_true_lang-
|
|
26
|
-
import { _ as
|
|
25
|
+
import { u as Tt } from "../TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js";
|
|
26
|
+
import { _ as nn } from "../TimeField.vue_vue_type_script_setup_true_lang-DrLtIexs.js";
|
|
27
27
|
import { _ as ge } from "../Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
28
28
|
import { _ as zt, r as Dt } from "../FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
29
|
-
import { a as
|
|
30
|
-
import { _ as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { _ as Mt } from "../
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
29
|
+
import { a as rn, c as un, p as dn, u as cn } from "../FormGroup.vue_vue_type_script_setup_true_lang-BokxZ7LU.js";
|
|
30
|
+
import { _ as mn } from "../FormView.vue_vue_type_script_setup_true_lang-Dz5TZt92.js";
|
|
31
|
+
import { i as Vt } from "../intlLocale-CeRU44qJ.js";
|
|
32
|
+
import { a as qt } from "../environment-Dva-SG8D.js";
|
|
33
|
+
import { _ as Mt } from "../NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js";
|
|
34
|
+
import { _ as Ot } from "../Sheet.vue_vue_type_script_setup_true_lang-DgOFV4fa.js";
|
|
35
|
+
import { u as jt, a as Ue } from "../SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js";
|
|
36
|
+
import { _ as pn, b as bn } from "../SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js";
|
|
37
|
+
import { g as yn, m as hn } from "../options-Ba_0uLWN.js";
|
|
38
|
+
import { _ as xn } from "../OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js";
|
|
38
39
|
import { _ as Ye } from "../PhotoViewer.vue_vue_type_script_setup_true_lang-QPCW3Xi6.js";
|
|
39
|
-
import { _ as
|
|
40
|
-
import { _ as
|
|
41
|
-
import { _ as
|
|
42
|
-
import { _ as
|
|
40
|
+
import { _ as _n } from "../SegmentedField.vue_vue_type_script_setup_true_lang-BMBkEmxr.js";
|
|
41
|
+
import { _ as Sn } from "../SwitchField.vue_vue_type_script_setup_true_lang-0weBvsJf.js";
|
|
42
|
+
import { _ as Fn } from "../TextareaField.vue_vue_type_script_setup_true_lang-4wC3c0BM.js";
|
|
43
|
+
import { _ as Rt } from "../Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js";
|
|
43
44
|
import { _ as We } from "../Banner.vue_vue_type_script_setup_true_lang-DSStj_5z.js";
|
|
44
|
-
import { D as
|
|
45
|
-
import { t as
|
|
46
|
-
import { a as
|
|
47
|
-
import { _ as
|
|
48
|
-
import { p as
|
|
49
|
-
import { u as
|
|
50
|
-
import { matchedRouteKey as
|
|
51
|
-
function
|
|
45
|
+
import { D as Et } from "../useWaitStatus-fsacMl4W.js";
|
|
46
|
+
import { t as It } from "../toast-CqSDTWRX.js";
|
|
47
|
+
import { a as Gt } from "../AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js";
|
|
48
|
+
import { _ as Nt, a as Kt } from "../SectionList.vue_vue_type_script_setup_true_lang-D5QWy-c1.js";
|
|
49
|
+
import { p as Pt } from "../sectionIndex-BS0ic5W7.js";
|
|
50
|
+
import { u as At } from "../useSaveChrome-7huA3FzR.js";
|
|
51
|
+
import { matchedRouteKey as Ht, onBeforeRouteLeave as Ut } from "vue-router";
|
|
52
|
+
function Yt(o) {
|
|
52
53
|
const t = N(null);
|
|
53
54
|
return {
|
|
54
55
|
isDirty: x(() => t.value !== null && JSON.stringify(o()) !== t.value),
|
|
55
56
|
markClean: () => t.value = JSON.stringify(o())
|
|
56
57
|
};
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
const t = N(!1), e =
|
|
59
|
+
function fo(o) {
|
|
60
|
+
const t = N(!1), e = Yt(o), { confirmDiscard: l } = Re(() => t.value && e.isDirty.value);
|
|
60
61
|
return {
|
|
61
62
|
/** The sheet was just filled: its current values are the baseline. */
|
|
62
63
|
opened: () => {
|
|
@@ -69,14 +70,14 @@ function uo(o) {
|
|
|
69
70
|
beforeDismiss: l
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
const
|
|
73
|
+
const Wt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Jt = ["name", "value", "checked", "disabled", "onChange"], Xt = { class: "min-w-0 flex-1" }, Qt = { class: "block text-body font-semibold text-content-strong" }, Zt = {
|
|
73
74
|
key: 0,
|
|
74
75
|
class: "mt-0.5 block text-footnote text-content-muted"
|
|
75
|
-
},
|
|
76
|
+
}, ea = {
|
|
76
77
|
key: 1,
|
|
77
78
|
class: "flex size-5 shrink-0 items-center justify-center rounded-full bg-control-on text-white",
|
|
78
79
|
"aria-hidden": "true"
|
|
79
|
-
},
|
|
80
|
+
}, mo = /* @__PURE__ */ K({
|
|
80
81
|
__name: "CardSelectField",
|
|
81
82
|
props: /* @__PURE__ */ ue({
|
|
82
83
|
label: {},
|
|
@@ -122,7 +123,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
122
123
|
checked: r.value === e.modelValue,
|
|
123
124
|
disabled: e.disabled || !n(s) || r.disabled,
|
|
124
125
|
onChange: (u) => l("update:modelValue", r.value)
|
|
125
|
-
}, null, 40,
|
|
126
|
+
}, null, 40, Jt),
|
|
126
127
|
r.icon ? (i(), h("span", {
|
|
127
128
|
key: 0,
|
|
128
129
|
class: R(["flex size-9 shrink-0 items-center justify-center rounded-control", r.value === e.modelValue ? "bg-control-on text-white" : "bg-fill-strong text-content-muted"])
|
|
@@ -132,18 +133,18 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
132
133
|
size: 18
|
|
133
134
|
}, null, 8, ["name"])
|
|
134
135
|
], 2)) : D("", !0),
|
|
135
|
-
b("span",
|
|
136
|
-
b("span",
|
|
137
|
-
r.description ? (i(), h("span",
|
|
136
|
+
b("span", Xt, [
|
|
137
|
+
b("span", Qt, C(r.label), 1),
|
|
138
|
+
r.description ? (i(), h("span", Zt, C(r.description), 1)) : D("", !0)
|
|
138
139
|
]),
|
|
139
|
-
r.value === e.modelValue ? (i(), h("span",
|
|
140
|
+
r.value === e.modelValue ? (i(), h("span", ea, [
|
|
140
141
|
M(n(X), {
|
|
141
142
|
name: "checkCustom",
|
|
142
143
|
size: 12
|
|
143
144
|
})
|
|
144
145
|
])) : D("", !0)
|
|
145
146
|
], 2))), 128))
|
|
146
|
-
], 10,
|
|
147
|
+
], 10, Wt)
|
|
147
148
|
]),
|
|
148
149
|
_: 2
|
|
149
150
|
}, [
|
|
@@ -170,10 +171,10 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
170
171
|
} : void 0
|
|
171
172
|
]), 1040, ["value"]));
|
|
172
173
|
}
|
|
173
|
-
}),
|
|
174
|
+
}), ta = ["data-field-error"], aa = ["aria-checked", "aria-disabled", "aria-describedby", "aria-invalid", "tabindex", "onKeydown"], la = { class: "flex min-w-0 flex-1 flex-col items-start" }, oa = {
|
|
174
175
|
key: 0,
|
|
175
176
|
class: "flex shrink-0 items-center gap-2.5"
|
|
176
|
-
},
|
|
177
|
+
}, na = ["id"], vo = /* @__PURE__ */ K({
|
|
177
178
|
__name: "CheckboxField",
|
|
178
179
|
props: /* @__PURE__ */ ne({
|
|
179
180
|
label: {},
|
|
@@ -221,7 +222,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
221
222
|
b("div", {
|
|
222
223
|
class: R(["flex min-w-0 flex-1 items-center gap-3", t.variant === "row" ? "min-h-row border-t border-border-separator py-2 pr-row-inset group-first/check:border-t-0" : ""])
|
|
223
224
|
}, [
|
|
224
|
-
b("div",
|
|
225
|
+
b("div", la, [
|
|
225
226
|
b("p", {
|
|
226
227
|
class: R(["w-full text-body", [t.variant === "row" ? "break-words" : "truncate", t.disabled ? "text-content-muted" : e.value ? "text-content-strong" : "text-content"]])
|
|
227
228
|
}, C(t.label), 3),
|
|
@@ -231,11 +232,11 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
231
232
|
}, C(t.description), 3)) : D("", !0),
|
|
232
233
|
z(d.$slots, "default")
|
|
233
234
|
]),
|
|
234
|
-
d.$slots.trailing ? (i(), h("div",
|
|
235
|
+
d.$slots.trailing ? (i(), h("div", oa, [
|
|
235
236
|
z(d.$slots, "trailing")
|
|
236
237
|
])) : D("", !0)
|
|
237
238
|
], 2)
|
|
238
|
-
], 42,
|
|
239
|
+
], 42, aa),
|
|
239
240
|
t.error ? (i(), h("p", {
|
|
240
241
|
key: 0,
|
|
241
242
|
id: `${n(s)}-error`,
|
|
@@ -248,13 +249,13 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
248
249
|
class: "mt-px shrink-0"
|
|
249
250
|
}),
|
|
250
251
|
Y(" " + C(t.error), 1)
|
|
251
|
-
], 8,
|
|
252
|
-
], 8,
|
|
252
|
+
], 8, na)) : D("", !0)
|
|
253
|
+
], 8, ta));
|
|
253
254
|
}
|
|
254
|
-
}),
|
|
255
|
+
}), sa = {
|
|
255
256
|
key: 0,
|
|
256
257
|
class: "text-body text-content-muted"
|
|
257
|
-
},
|
|
258
|
+
}, ra = ["id", "aria-label", "aria-describedby", "aria-invalid"], ia = ["aria-pressed", "disabled", "onClick"], po = /* @__PURE__ */ K({
|
|
258
259
|
__name: "ChoiceChips",
|
|
259
260
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
260
261
|
label: {},
|
|
@@ -280,7 +281,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
280
281
|
"row-layout": "stacked"
|
|
281
282
|
}), re({
|
|
282
283
|
default: m(({ id: d, describedby: c, invalid: g }) => [
|
|
283
|
-
t.options.length === 0 ? (i(), h("span",
|
|
284
|
+
t.options.length === 0 ? (i(), h("span", sa, "—")) : (i(), h("div", {
|
|
284
285
|
key: 1,
|
|
285
286
|
id: d,
|
|
286
287
|
role: "group",
|
|
@@ -304,8 +305,8 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
304
305
|
size: 12
|
|
305
306
|
})) : D("", !0),
|
|
306
307
|
Y(" " + C(k.label), 1)
|
|
307
|
-
], 10,
|
|
308
|
-
], 8,
|
|
308
|
+
], 10, ia))), 128))
|
|
309
|
+
], 8, ra))
|
|
309
310
|
]),
|
|
310
311
|
_: 2
|
|
311
312
|
}, [
|
|
@@ -332,7 +333,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
332
333
|
} : void 0
|
|
333
334
|
]), 1040, ["value"]));
|
|
334
335
|
}
|
|
335
|
-
}),
|
|
336
|
+
}), ua = ["id", "value", "name", "placeholder", "disabled", "required", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-required", "aria-invalid", "aria-describedby"], bo = /* @__PURE__ */ K({
|
|
336
337
|
__name: "ComboField",
|
|
337
338
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
338
339
|
label: {},
|
|
@@ -420,7 +421,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
420
421
|
onFocus: H,
|
|
421
422
|
onBlur: te,
|
|
422
423
|
onKeydown: W[0] || (W[0] = (le) => n(p).keydown(le, { pick: ee, enterNeedsMove: !1 }))
|
|
423
|
-
}, null, 42,
|
|
424
|
+
}, null, 42, ua),
|
|
424
425
|
M(n(X), {
|
|
425
426
|
name: "search",
|
|
426
427
|
size: 14,
|
|
@@ -467,13 +468,13 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
467
468
|
} : void 0
|
|
468
469
|
]), 1040, ["value"]));
|
|
469
470
|
}
|
|
470
|
-
}),
|
|
471
|
+
}), da = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ca = ["aria-label", "onClick"], fa = {
|
|
471
472
|
class: "-m-3 flex",
|
|
472
473
|
"data-test": "date-time-popover"
|
|
473
|
-
},
|
|
474
|
+
}, ma = { class: "flex w-75 flex-col gap-2.5 border-r border-border-separator p-3.5" }, va = {
|
|
474
475
|
key: 0,
|
|
475
476
|
class: "border-t border-border-separator pt-2.5"
|
|
476
|
-
},
|
|
477
|
+
}, pa = { class: "flex w-48 flex-col gap-2.5 px-3 py-3.5" }, ba = ["for"], ga = ["id", "value", "placeholder", "aria-invalid"], ya = ["onClick"], go = /* @__PURE__ */ K({
|
|
477
478
|
__name: "DateTimeField",
|
|
478
479
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
479
480
|
label: {},
|
|
@@ -606,7 +607,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
606
607
|
onBlur: j[2] || (j[2] = (T) => n(S).commit()),
|
|
607
608
|
onKeydown: we,
|
|
608
609
|
onClick: j[3] || (j[3] = (T) => fe(!1))
|
|
609
|
-
}), null, 16,
|
|
610
|
+
}), null, 16, da),
|
|
610
611
|
e.disabled ? D("", !0) : (i(), h("button", {
|
|
611
612
|
key: 0,
|
|
612
613
|
type: "button",
|
|
@@ -619,12 +620,12 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
619
620
|
name: "calendarLine",
|
|
620
621
|
size: 18
|
|
621
622
|
})
|
|
622
|
-
], 8,
|
|
623
|
+
], 8, ca))
|
|
623
624
|
], 2)
|
|
624
625
|
]),
|
|
625
626
|
default: m(({ dismiss: f }) => [
|
|
626
|
-
b("div",
|
|
627
|
-
b("div",
|
|
627
|
+
b("div", fa, [
|
|
628
|
+
b("div", ma, [
|
|
628
629
|
M(xt, {
|
|
629
630
|
ref_key: "calendar",
|
|
630
631
|
ref: k,
|
|
@@ -635,7 +636,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
635
636
|
"open-on": e.openOn,
|
|
636
637
|
"onUpdate:modelValue": P
|
|
637
638
|
}, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on"]),
|
|
638
|
-
n(H).length > 0 ? (i(), h("div",
|
|
639
|
+
n(H).length > 0 ? (i(), h("div", va, [
|
|
639
640
|
M(wt, {
|
|
640
641
|
items: n(H),
|
|
641
642
|
selected: W.value,
|
|
@@ -643,11 +644,11 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
643
644
|
}, null, 8, ["items", "selected"])
|
|
644
645
|
])) : D("", !0)
|
|
645
646
|
]),
|
|
646
|
-
b("div",
|
|
647
|
+
b("div", pa, [
|
|
647
648
|
b("label", {
|
|
648
649
|
for: n(he),
|
|
649
650
|
class: "text-footnote font-semibold text-content-muted"
|
|
650
|
-
}, C(n(s)("core.form.time.label")), 9,
|
|
651
|
+
}, C(n(s)("core.form.time.label")), 9, ba),
|
|
651
652
|
b("input", {
|
|
652
653
|
id: n(he),
|
|
653
654
|
type: "text",
|
|
@@ -660,7 +661,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
660
661
|
onInput: j[4] || (j[4] = (B) => n(I).input(B.target.value)),
|
|
661
662
|
onBlur: j[5] || (j[5] = (B) => n(I).commit()),
|
|
662
663
|
onKeydown: j[6] || (j[6] = Ce(be((B) => n(I).commit(), ["prevent"]), ["enter"]))
|
|
663
|
-
}, null, 40,
|
|
664
|
+
}, null, 40, ga),
|
|
664
665
|
M(_t, {
|
|
665
666
|
"model-value": U.value,
|
|
666
667
|
step: e.minuteStep,
|
|
@@ -670,7 +671,7 @@ const Yt = ["id", "aria-label", "aria-describedby", "aria-invalid"], Wt = ["name
|
|
|
670
671
|
type: "button",
|
|
671
672
|
class: "cursor-pointer self-start rounded-full bg-tint-soft px-2.5 py-1.5 text-footnote font-medium text-content-link focus-visible:outline-2 focus-visible:outline-border-focus",
|
|
672
673
|
onClick: (B) => le(f)
|
|
673
|
-
}, C(n(s)("core.form.time.now")), 9,
|
|
674
|
+
}, C(n(s)("core.form.time.now")), 9, ya)
|
|
674
675
|
])
|
|
675
676
|
])
|
|
676
677
|
]),
|
|
@@ -717,11 +718,11 @@ function lt(o, t = {}) {
|
|
|
717
718
|
function Be(o) {
|
|
718
719
|
return o < 1024 ? `${o} B` : o < 1024 * 1024 ? `${Math.round(o / 1024)} KB` : `${(o / (1024 * 1024)).toFixed(o % (1024 * 1024) === 0 ? 0 : 1)} MB`;
|
|
719
720
|
}
|
|
720
|
-
const
|
|
721
|
+
const ha = { class: "w-full" }, ka = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], xa = {
|
|
721
722
|
key: 0,
|
|
722
723
|
class: "flex items-center gap-3 rounded-group bg-fill p-3",
|
|
723
724
|
"data-test": "file-selected"
|
|
724
|
-
},
|
|
725
|
+
}, wa = { class: "min-w-0 flex-1" }, _a = { class: "truncate text-body font-medium text-content-strong" }, $a = { class: "text-footnote text-content-muted" }, Sa = ["disabled", "aria-label", "title"], Ca = ["aria-disabled"], Fa = { class: "font-semibold text-content-link" }, Ba = { class: "text-content-muted" }, yo = /* @__PURE__ */ K({
|
|
725
726
|
__name: "FileField",
|
|
726
727
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
727
728
|
label: {},
|
|
@@ -763,7 +764,7 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
763
764
|
"row-layout": "stacked"
|
|
764
765
|
}), re({
|
|
765
766
|
default: m(({ id: u, describedby: p, invalid: F }) => [
|
|
766
|
-
b("div",
|
|
767
|
+
b("div", ha, [
|
|
767
768
|
b("input", {
|
|
768
769
|
id: u,
|
|
769
770
|
ref_key: "chooser",
|
|
@@ -776,11 +777,11 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
776
777
|
"aria-describedby": p,
|
|
777
778
|
"aria-invalid": F || void 0,
|
|
778
779
|
onChange: r[0] || (r[0] = (L) => k(L.target.files?.[0]))
|
|
779
|
-
}, null, 40,
|
|
780
|
-
l.value ? (i(), h("div",
|
|
781
|
-
b("div",
|
|
782
|
-
b("p",
|
|
783
|
-
b("p",
|
|
780
|
+
}, null, 40, ka),
|
|
781
|
+
l.value ? (i(), h("div", xa, [
|
|
782
|
+
b("div", wa, [
|
|
783
|
+
b("p", _a, C(l.value.name), 1),
|
|
784
|
+
b("p", $a, C(n(Be)(l.value.size)), 1)
|
|
784
785
|
]),
|
|
785
786
|
b("button", {
|
|
786
787
|
type: "button",
|
|
@@ -794,7 +795,7 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
794
795
|
name: "close",
|
|
795
796
|
size: 14
|
|
796
797
|
})
|
|
797
|
-
], 8,
|
|
798
|
+
], 8, Sa)
|
|
798
799
|
])) : e.variant === "dropzone" ? (i(), h("div", {
|
|
799
800
|
key: 1,
|
|
800
801
|
role: "button",
|
|
@@ -813,9 +814,9 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
813
814
|
d.value = !1, e.disabled || k(L.dataTransfer?.files?.[0]);
|
|
814
815
|
}, ["prevent"]))
|
|
815
816
|
}, [
|
|
816
|
-
b("span",
|
|
817
|
-
b("span",
|
|
818
|
-
], 42,
|
|
817
|
+
b("span", Fa, C(n(s)("core.form.file.choose")), 1),
|
|
818
|
+
b("span", Ba, C(n(s)("core.form.file.drop")), 1)
|
|
819
|
+
], 42, Ca)) : (i(), q(ge, {
|
|
819
820
|
key: 2,
|
|
820
821
|
disabled: e.disabled,
|
|
821
822
|
onClick: r[7] || (r[7] = (L) => a.value?.click())
|
|
@@ -852,7 +853,7 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
852
853
|
} : void 0
|
|
853
854
|
]), 1040, ["value"]));
|
|
854
855
|
}
|
|
855
|
-
}),
|
|
856
|
+
}), La = ["disabled"], ho = /* @__PURE__ */ K({
|
|
856
857
|
__name: "FormGroupButton",
|
|
857
858
|
props: {
|
|
858
859
|
label: {},
|
|
@@ -871,7 +872,7 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
871
872
|
disabled: e.disabled,
|
|
872
873
|
class: R(["w-full py-1 text-center text-body focus-visible:outline-2 focus-visible:outline-border-focus disabled:text-content-disabled", e.tone === "critical" ? "text-content-destructive" : "text-content-link"]),
|
|
873
874
|
onClick: a[0] || (a[0] = (d) => l("click"))
|
|
874
|
-
}, C(e.label), 11,
|
|
875
|
+
}, C(e.label), 11, La)
|
|
875
876
|
]),
|
|
876
877
|
_: 1
|
|
877
878
|
})
|
|
@@ -879,29 +880,29 @@ const ya = { class: "w-full" }, ha = ["id", "accept", "disabled", "aria-describe
|
|
|
879
880
|
_: 1
|
|
880
881
|
}));
|
|
881
882
|
}
|
|
882
|
-
}),
|
|
883
|
+
}), ko = /* @__PURE__ */ K({
|
|
883
884
|
__name: "FormIndent",
|
|
884
885
|
setup(o) {
|
|
885
886
|
return Ve(ct, ft() + 1), (t, e) => z(t.$slots, "default");
|
|
886
887
|
}
|
|
887
888
|
});
|
|
888
|
-
function
|
|
889
|
+
function Ta(o, t) {
|
|
889
890
|
return t.filter((e) => (o?.[e] ?? "").trim() === "");
|
|
890
891
|
}
|
|
891
|
-
const
|
|
892
|
+
const za = ["id", "aria-labelledby"], Da = ["id", "value", "lang", "name", "rows", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], Va = ["id", "value", "lang", "name", "placeholder", "maxlength", "disabled", "aria-required", "aria-invalid", "aria-describedby"], qa = {
|
|
892
893
|
key: 0,
|
|
893
894
|
class: "mt-1.5 flex items-center gap-2"
|
|
894
|
-
},
|
|
895
|
+
}, Ma = {
|
|
895
896
|
key: 0,
|
|
896
897
|
class: "flex-1 text-footnote text-status-warning-content",
|
|
897
898
|
"data-test": "i18n-missing"
|
|
898
|
-
},
|
|
899
|
+
}, Oa = {
|
|
899
900
|
key: 1,
|
|
900
901
|
class: "flex-1"
|
|
901
|
-
},
|
|
902
|
+
}, ja = ["aria-label"], Ra = ["id", "aria-selected", "tabindex", "aria-controls", "aria-label", "title", "onClick", "onKeydown"], Ea = ["data-state"], Ia = { class: "w-full" }, Ga = { class: "whitespace-pre-line break-words text-body text-content-strong" }, Na = ["aria-expanded"], Ka = { class: "flex-1" }, Pa = {
|
|
902
903
|
key: 0,
|
|
903
904
|
class: "mt-1 flex flex-col gap-1.5"
|
|
904
|
-
},
|
|
905
|
+
}, Aa = ["title"], xo = /* @__PURE__ */ K({
|
|
905
906
|
__name: "I18nField",
|
|
906
907
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
907
908
|
label: {},
|
|
@@ -927,10 +928,10 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
927
928
|
}),
|
|
928
929
|
emits: ["update:modelValue"],
|
|
929
930
|
setup(o, { expose: t }) {
|
|
930
|
-
const e = o, l = oe(o, "modelValue"), { t: s, locale: a, availableLocales: d } = Z(), c = Ze(
|
|
931
|
+
const e = o, l = oe(o, "modelValue"), { t: s, locale: a, availableLocales: d } = Z(), c = Ze(qt, null), g = Oe(), k = A("field"), w = A("root"), { editable: y } = et(e), r = Ee(e.multiline ? "area" : "text", () => e.error || ae.value ? "error" : e.disabled ? "locked" : "rest"), u = x(() => e.locales ?? c?.locales ?? d), p = x(() => e.defaultLocale ?? u.value[0] ?? ""), F = x(() => u.value.includes(p.value) ? [p.value, ...u.value.filter((f) => f !== p.value)] : u.value), L = N(null), _ = x(() => L.value !== null && F.value.includes(L.value) ? L.value : F.value.includes(a.value) ? a.value : p.value), G = (f) => l.value[f] ?? "", S = (f) => G(f).trim() !== "", O = (f) => f.toUpperCase();
|
|
931
932
|
function I(f) {
|
|
932
933
|
try {
|
|
933
|
-
return new Intl.DisplayNames([a.value], { type: "language" }).of(f) ?? O(f);
|
|
934
|
+
return new Intl.DisplayNames([Vt(a.value)], { type: "language" }).of(f) ?? O(f);
|
|
934
935
|
} catch {
|
|
935
936
|
return O(f);
|
|
936
937
|
}
|
|
@@ -954,7 +955,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
954
955
|
function U(f) {
|
|
955
956
|
w.value?.contains(f.relatedTarget) || (W.value = !0);
|
|
956
957
|
}
|
|
957
|
-
const P = x(() =>
|
|
958
|
+
const P = x(() => Ta(l.value, e.requiredLocales)), ae = x(() => W.value && P.value.length > 0 ? s("core.form.i18n.required", { languages: H(P.value) }) : void 0), le = x(() => e.requiredLocales.length > 0 ? P.value.length === 0 : F.value.some(S)), he = x(() => F.value.filter((f) => !S(f) && !(ae.value && P.value.includes(f)))), fe = x(() => S(p.value) && F.value.some((f) => f !== p.value && !S(f)));
|
|
958
959
|
function we() {
|
|
959
960
|
const f = G(p.value);
|
|
960
961
|
l.value = { ...l.value, ...Object.fromEntries(F.value.filter((B) => !S(B)).map((B) => [B, f])) };
|
|
@@ -997,7 +998,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
997
998
|
"data-test": "i18n-input",
|
|
998
999
|
class: "block w-full resize-y 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",
|
|
999
1000
|
onInput: B[0] || (B[0] = (Le) => ee(_.value, Le.target.value))
|
|
1000
|
-
}, null, 40,
|
|
1001
|
+
}, null, 40, Da)) : (i(), h("input", {
|
|
1001
1002
|
key: 1,
|
|
1002
1003
|
id: T,
|
|
1003
1004
|
ref_key: "field",
|
|
@@ -1015,11 +1016,11 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1015
1016
|
"data-test": "i18n-input",
|
|
1016
1017
|
class: "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",
|
|
1017
1018
|
onInput: B[1] || (B[1] = (Le) => ee(_.value, Le.target.value))
|
|
1018
|
-
}, null, 40,
|
|
1019
|
+
}, null, 40, Va))
|
|
1019
1020
|
], 2)
|
|
1020
|
-
], 8,
|
|
1021
|
-
he.value.length > 0 || fe.value ? (i(), h("div",
|
|
1022
|
-
he.value.length > 0 ? (i(), h("p",
|
|
1021
|
+
], 8, za),
|
|
1022
|
+
he.value.length > 0 || fe.value ? (i(), h("div", qa, [
|
|
1023
|
+
he.value.length > 0 ? (i(), h("p", Ma, C(n(s)("core.form.i18n.missing", { languages: H(he.value) })), 1)) : (i(), h("span", Oa)),
|
|
1023
1024
|
fe.value && !e.disabled ? (i(), h("button", {
|
|
1024
1025
|
key: 2,
|
|
1025
1026
|
type: "button",
|
|
@@ -1057,17 +1058,17 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1057
1058
|
class: R(["size-1.5 rounded-full", S(T) ? "bg-status-success-solid" : ae.value && P.value.includes(T) ? "bg-content-destructive" : "bg-content-disabled"]),
|
|
1058
1059
|
"data-test": "i18n-dot",
|
|
1059
1060
|
"data-state": S(T) ? "written" : ae.value && P.value.includes(T) ? "required" : "empty"
|
|
1060
|
-
}, null, 10,
|
|
1061
|
-
], 42,
|
|
1062
|
-
], 8,
|
|
1061
|
+
}, null, 10, Ea)
|
|
1062
|
+
], 42, Ra))), 128))
|
|
1063
|
+
], 8, ja)
|
|
1063
1064
|
]),
|
|
1064
1065
|
_: 2
|
|
1065
1066
|
}, [
|
|
1066
1067
|
$.value ? {
|
|
1067
1068
|
name: "readonly",
|
|
1068
1069
|
fn: m(() => [
|
|
1069
|
-
b("div",
|
|
1070
|
-
b("p",
|
|
1070
|
+
b("div", Ia, [
|
|
1071
|
+
b("p", Ga, C(G($.value)), 1),
|
|
1071
1072
|
j.value.length > 0 ? (i(), h(se, { key: 0 }, [
|
|
1072
1073
|
b("button", {
|
|
1073
1074
|
type: "button",
|
|
@@ -1075,14 +1076,14 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1075
1076
|
class: "mt-1.5 flex w-full cursor-pointer items-center gap-2 text-left text-footnote text-content-muted focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
|
|
1076
1077
|
onClick: B[2] || (B[2] = (T) => v.value = !v.value)
|
|
1077
1078
|
}, [
|
|
1078
|
-
b("span",
|
|
1079
|
+
b("span", Ka, C(n(s)("core.form.i18n.more", { count: j.value.length, filled: me.value })), 1),
|
|
1079
1080
|
M(n(X), {
|
|
1080
1081
|
name: "arrowRightSLine",
|
|
1081
1082
|
size: 16,
|
|
1082
1083
|
class: R(["shrink-0 transition-transform duration-motion-fast", v.value ? "rotate-90" : ""])
|
|
1083
1084
|
}, null, 8, ["class"])
|
|
1084
|
-
], 8,
|
|
1085
|
-
v.value ? (i(), h("dl",
|
|
1085
|
+
], 8, Na),
|
|
1086
|
+
v.value ? (i(), h("dl", Pa, [
|
|
1086
1087
|
(i(!0), h(se, null, xe(j.value, (T) => (i(), h("div", {
|
|
1087
1088
|
key: T,
|
|
1088
1089
|
class: "flex gap-2 text-body"
|
|
@@ -1090,7 +1091,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1090
1091
|
b("dt", {
|
|
1091
1092
|
class: "w-8 shrink-0 text-footnote font-semibold leading-6 text-content-muted",
|
|
1092
1093
|
title: I(T)
|
|
1093
|
-
}, C(O(T)), 9,
|
|
1094
|
+
}, C(O(T)), 9, Aa),
|
|
1094
1095
|
b("dd", {
|
|
1095
1096
|
class: R(["min-w-0 flex-1 whitespace-pre-line break-words", S(T) ? "text-content-strong" : "text-content-disabled"])
|
|
1096
1097
|
}, C(S(T) ? G(T) : n(s)("core.state.no_value")), 3)
|
|
@@ -1110,7 +1111,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1110
1111
|
} : void 0
|
|
1111
1112
|
]), 1040, ["value"]));
|
|
1112
1113
|
}
|
|
1113
|
-
}),
|
|
1114
|
+
}), wo = /* @__PURE__ */ K({
|
|
1114
1115
|
__name: "MoneyField",
|
|
1115
1116
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
1116
1117
|
label: {},
|
|
@@ -1134,7 +1135,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1134
1135
|
emits: ["update:modelValue"],
|
|
1135
1136
|
setup(o, { expose: t }) {
|
|
1136
1137
|
const e = o, l = oe(o, "modelValue"), s = A("field");
|
|
1137
|
-
return t({ focus: () => s.value?.focus() }), (a, d) => (i(), q(
|
|
1138
|
+
return t({ focus: () => s.value?.focus() }), (a, d) => (i(), q(Mt, J({
|
|
1138
1139
|
ref_key: "field",
|
|
1139
1140
|
ref: s,
|
|
1140
1141
|
modelValue: l.value,
|
|
@@ -1168,7 +1169,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1168
1169
|
} : void 0
|
|
1169
1170
|
]), 1040, ["modelValue", "decimals", "negative", "suffix", "width"]));
|
|
1170
1171
|
}
|
|
1171
|
-
}),
|
|
1172
|
+
}), Ha = { class: "flex flex-col gap-2" }, Ua = ["onClick"], _o = /* @__PURE__ */ K({
|
|
1172
1173
|
__name: "MonthYearField",
|
|
1173
1174
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
1174
1175
|
label: {},
|
|
@@ -1229,7 +1230,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1229
1230
|
}, 16, ["expanded", "disabled", "invalid", "onClick"])
|
|
1230
1231
|
]),
|
|
1231
1232
|
default: m(({ dismiss: F }) => [
|
|
1232
|
-
b("div",
|
|
1233
|
+
b("div", Ha, [
|
|
1233
1234
|
M(St, {
|
|
1234
1235
|
month: e.value,
|
|
1235
1236
|
year: l.value,
|
|
@@ -1242,7 +1243,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1242
1243
|
type: "button",
|
|
1243
1244
|
class: "cursor-pointer self-start rounded-control px-1 text-footnote text-content-link",
|
|
1244
1245
|
onClick: (L) => k(F)
|
|
1245
|
-
}, C(n(s)("core.form.select.clear")), 9,
|
|
1246
|
+
}, C(n(s)("core.form.select.clear")), 9, Ua)) : D("", !0)
|
|
1246
1247
|
])
|
|
1247
1248
|
]),
|
|
1248
1249
|
_: 2
|
|
@@ -1273,7 +1274,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1273
1274
|
} : void 0
|
|
1274
1275
|
]), 1040, ["value"]));
|
|
1275
1276
|
}
|
|
1276
|
-
}),
|
|
1277
|
+
}), Ya = { class: "flex min-w-0 flex-wrap items-center gap-1.5 py-0.5" }, Wa = { class: "truncate" }, Ja = ["disabled", "aria-label", "onClick"], Xa = ["id", "disabled", "aria-expanded", "aria-invalid", "aria-describedby", "aria-busy"], Qa = ["id", "disabled", "aria-invalid", "aria-describedby", "aria-busy", "onClick"], Za = { class: "max-h-72 overflow-y-auto" }, el = { class: "flex items-center justify-between gap-2" }, Je = "inline-flex min-h-7 cursor-pointer items-center gap-1 rounded-control bg-fill px-2.5 py-1 text-body text-content-muted hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus disabled:cursor-not-allowed disabled:opacity-45", $o = /* @__PURE__ */ K({
|
|
1277
1278
|
__name: "MultiSelectField",
|
|
1278
1279
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
1279
1280
|
label: {},
|
|
@@ -1296,7 +1297,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1296
1297
|
}),
|
|
1297
1298
|
emits: ["update:modelValue"],
|
|
1298
1299
|
setup(o) {
|
|
1299
|
-
const t = o, e = oe(o, "modelValue"), { t: l } = Z(), s = Ie(), a = A("sheet"), d = N(!1), c =
|
|
1300
|
+
const t = o, e = oe(o, "modelValue"), { t: l } = Z(), s = Ie(), a = A("sheet"), d = N(!1), c = jt(() => t.options, (r) => {
|
|
1300
1301
|
const u = e.value.filter((p) => r.some((F) => F.value === p));
|
|
1301
1302
|
u.length !== e.value.length && (e.value = u);
|
|
1302
1303
|
}), g = x(() => e.value.flatMap((r) => {
|
|
@@ -1312,13 +1313,13 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1312
1313
|
"row-layout": "stacked"
|
|
1313
1314
|
}), re({
|
|
1314
1315
|
default: m(({ id: p, describedby: F, invalid: L }) => [
|
|
1315
|
-
b("div",
|
|
1316
|
+
b("div", Ya, [
|
|
1316
1317
|
(i(!0), h(se, null, xe(g.value, (_) => (i(), h("span", {
|
|
1317
1318
|
key: String(_.value),
|
|
1318
1319
|
"data-test": "chip",
|
|
1319
1320
|
class: "inline-flex min-h-7 max-w-full items-center gap-1 rounded-full bg-tint-soft pl-3 pr-1 text-subheadline font-medium text-content-link"
|
|
1320
1321
|
}, [
|
|
1321
|
-
b("span",
|
|
1322
|
+
b("span", Wa, C(_.label), 1),
|
|
1322
1323
|
b("button", {
|
|
1323
1324
|
type: "button",
|
|
1324
1325
|
disabled: t.disabled,
|
|
@@ -1330,7 +1331,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1330
1331
|
name: "close",
|
|
1331
1332
|
size: 12
|
|
1332
1333
|
})
|
|
1333
|
-
], 8,
|
|
1334
|
+
], 8, Ja)
|
|
1334
1335
|
]))), 128)),
|
|
1335
1336
|
n(s) ? (i(), h("button", {
|
|
1336
1337
|
key: 0,
|
|
@@ -1352,7 +1353,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1352
1353
|
class: "shrink-0 animate-spin"
|
|
1353
1354
|
})) : D("", !0),
|
|
1354
1355
|
Y(" " + C(g.value.length ? n(l)("core.actions.edit") : k.value), 1)
|
|
1355
|
-
], 8,
|
|
1356
|
+
], 8, Xa)) : (i(), q(Ge, {
|
|
1356
1357
|
key: 1,
|
|
1357
1358
|
label: t.label ?? k.value,
|
|
1358
1359
|
width: "md",
|
|
@@ -1380,10 +1381,10 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1380
1381
|
class: "shrink-0 animate-spin"
|
|
1381
1382
|
})) : D("", !0),
|
|
1382
1383
|
Y(" " + C(g.value.length ? n(l)("core.actions.edit") : k.value), 1)
|
|
1383
|
-
], 16,
|
|
1384
|
+
], 16, Qa)
|
|
1384
1385
|
]),
|
|
1385
1386
|
default: m(() => [
|
|
1386
|
-
b("div",
|
|
1387
|
+
b("div", Za, [
|
|
1387
1388
|
M(Ue, {
|
|
1388
1389
|
options: n(c).rows.value,
|
|
1389
1390
|
status: n(c).status.value,
|
|
@@ -1399,7 +1400,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1399
1400
|
_: 2
|
|
1400
1401
|
}, 1032, ["label"]))
|
|
1401
1402
|
]),
|
|
1402
|
-
n(s) ? (i(), q(
|
|
1403
|
+
n(s) ? (i(), q(Ot, {
|
|
1403
1404
|
key: 0,
|
|
1404
1405
|
ref_key: "sheet",
|
|
1405
1406
|
ref: a,
|
|
@@ -1409,7 +1410,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1409
1410
|
onDismissed: u[6] || (u[6] = (_) => d.value = !1)
|
|
1410
1411
|
}, {
|
|
1411
1412
|
footer: m(() => [
|
|
1412
|
-
b("div",
|
|
1413
|
+
b("div", el, [
|
|
1413
1414
|
M(ge, {
|
|
1414
1415
|
prominence: "plain",
|
|
1415
1416
|
disabled: e.value.length === 0,
|
|
@@ -1470,7 +1471,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1470
1471
|
} : void 0
|
|
1471
1472
|
]), 1040, ["value"]));
|
|
1472
1473
|
}
|
|
1473
|
-
}),
|
|
1474
|
+
}), tl = ["aria-label"], al = ["src"], ll = { class: "flex flex-wrap items-center gap-3" }, ol = ["id", "accept", "disabled", "aria-describedby", "aria-invalid"], nl = ["aria-label"], sl = ["src"], So = /* @__PURE__ */ K({
|
|
1474
1475
|
__name: "PhotoField",
|
|
1475
1476
|
props: /* @__PURE__ */ ne(/* @__PURE__ */ ue({
|
|
1476
1477
|
label: {},
|
|
@@ -1525,8 +1526,8 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1525
1526
|
src: g.value,
|
|
1526
1527
|
alt: "",
|
|
1527
1528
|
class: "size-40 rounded-group object-cover"
|
|
1528
|
-
}, null, 8,
|
|
1529
|
-
], 8,
|
|
1529
|
+
}, null, 8, al)
|
|
1530
|
+
], 8, tl)) : D("", !0),
|
|
1530
1531
|
g.value ? (i(), q(Ye, {
|
|
1531
1532
|
key: 1,
|
|
1532
1533
|
ref_key: "viewer",
|
|
@@ -1535,7 +1536,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1535
1536
|
}, null, 8, ["items"])) : D("", !0)
|
|
1536
1537
|
]),
|
|
1537
1538
|
default: m(({ id: p, describedby: F, invalid: L }) => [
|
|
1538
|
-
b("div",
|
|
1539
|
+
b("div", ll, [
|
|
1539
1540
|
b("input", {
|
|
1540
1541
|
id: p,
|
|
1541
1542
|
ref_key: "chooser",
|
|
@@ -1548,7 +1549,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1548
1549
|
"aria-describedby": F,
|
|
1549
1550
|
"aria-invalid": L || void 0,
|
|
1550
1551
|
onChange: u[1] || (u[1] = (_) => y(_.target.files?.[0]))
|
|
1551
|
-
}, null, 40,
|
|
1552
|
+
}, null, 40, ol),
|
|
1552
1553
|
g.value ? (i(), h("button", {
|
|
1553
1554
|
key: 0,
|
|
1554
1555
|
type: "button",
|
|
@@ -1562,8 +1563,8 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1562
1563
|
alt: "",
|
|
1563
1564
|
"data-test": "photo-preview",
|
|
1564
1565
|
class: "size-28 rounded-group object-cover"
|
|
1565
|
-
}, null, 8,
|
|
1566
|
-
], 8,
|
|
1566
|
+
}, null, 8, sl)
|
|
1567
|
+
], 8, nl)) : D("", !0),
|
|
1567
1568
|
M(ge, {
|
|
1568
1569
|
disabled: t.disabled,
|
|
1569
1570
|
onClick: u[3] || (u[3] = (_) => s.value?.click())
|
|
@@ -1613,7 +1614,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1613
1614
|
} : void 0
|
|
1614
1615
|
]), 1040, ["value"]));
|
|
1615
1616
|
}
|
|
1616
|
-
}),
|
|
1617
|
+
}), rl = { class: "text-footnote" }, il = { class: "text-footnote" }, Co = /* @__PURE__ */ K({
|
|
1617
1618
|
__name: "GroupSheet",
|
|
1618
1619
|
props: {
|
|
1619
1620
|
sheet: {},
|
|
@@ -1636,10 +1637,10 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1636
1637
|
g && clearTimeout(g);
|
|
1637
1638
|
});
|
|
1638
1639
|
async function k() {
|
|
1639
|
-
await e.sheet.save() && (c.value = !0, l("saved"), g = setTimeout(() => e.sheet.dismiss(),
|
|
1640
|
+
await e.sheet.save() && (c.value = !0, l("saved"), g = setTimeout(() => e.sheet.dismiss(), Et));
|
|
1640
1641
|
}
|
|
1641
1642
|
const w = x(() => e.sheet.saving.value ? "processing" : c.value ? "done" : "idle");
|
|
1642
|
-
return (y, r) => (i(), q(
|
|
1643
|
+
return (y, r) => (i(), q(Rt, {
|
|
1643
1644
|
ref_key: "modal",
|
|
1644
1645
|
ref: a,
|
|
1645
1646
|
size: e.size,
|
|
@@ -1666,7 +1667,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1666
1667
|
"data-test": "group-sheet-notice"
|
|
1667
1668
|
}, {
|
|
1668
1669
|
default: m(() => [
|
|
1669
|
-
b("p",
|
|
1670
|
+
b("p", rl, C(e.sheet.notice.value), 1)
|
|
1670
1671
|
]),
|
|
1671
1672
|
_: 1
|
|
1672
1673
|
})) : D("", !0),
|
|
@@ -1676,7 +1677,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1676
1677
|
"data-test": "group-sheet-foreign"
|
|
1677
1678
|
}, {
|
|
1678
1679
|
default: m(() => [
|
|
1679
|
-
b("p",
|
|
1680
|
+
b("p", il, C(n(s)("core.form.group.foreign", { groups: e.sheet.foreignGroups.value.map(e.groupLabel).join(", ") })), 1)
|
|
1680
1681
|
]),
|
|
1681
1682
|
_: 1
|
|
1682
1683
|
})) : D("", !0),
|
|
@@ -1691,7 +1692,7 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1691
1692
|
_: 3
|
|
1692
1693
|
}, 8, ["size", "title", "subtitle", "before-dismiss", "primary-label", "status", "processing-label", "done-label"]));
|
|
1693
1694
|
}
|
|
1694
|
-
}),
|
|
1695
|
+
}), ul = ["data-group"], Fo = /* @__PURE__ */ K({
|
|
1695
1696
|
__name: "RecordGroupScope",
|
|
1696
1697
|
props: {
|
|
1697
1698
|
only: {},
|
|
@@ -1705,10 +1706,10 @@ const Ta = ["id", "aria-labelledby"], za = ["id", "value", "lang", "name", "rows
|
|
|
1705
1706
|
"data-group": t.only
|
|
1706
1707
|
}, [
|
|
1707
1708
|
z(e.$slots, "default")
|
|
1708
|
-
], 8,
|
|
1709
|
+
], 8, ul));
|
|
1709
1710
|
}
|
|
1710
1711
|
});
|
|
1711
|
-
function
|
|
1712
|
+
function Bo(o) {
|
|
1712
1713
|
const { form: t } = o;
|
|
1713
1714
|
if (o.rebase && !t.rebase) throw new Error("useGroupSheet: `rebase` needs a record form (useResourceForm), which can take the freshly read record as its base.");
|
|
1714
1715
|
const e = () => typeof o.fields == "function" ? o.fields() : o.fields, l = () => qe(o.restore) ?? e(), s = N(!1), a = N(!1), d = N([]), c = N(null), g = De({});
|
|
@@ -1759,7 +1760,7 @@ function Co(o) {
|
|
|
1759
1760
|
case "saved":
|
|
1760
1761
|
return u(), !0;
|
|
1761
1762
|
case "saved-refresh-failed":
|
|
1762
|
-
return u(),
|
|
1763
|
+
return u(), It.warning(t.failure.value?.message ?? ""), !0;
|
|
1763
1764
|
case "aborted":
|
|
1764
1765
|
return !1;
|
|
1765
1766
|
case "failed":
|
|
@@ -1786,16 +1787,16 @@ function Co(o) {
|
|
|
1786
1787
|
closed: F
|
|
1787
1788
|
};
|
|
1788
1789
|
}
|
|
1789
|
-
const
|
|
1790
|
+
const dl = { hidden: "" }, cl = /* @__PURE__ */ K({
|
|
1790
1791
|
__name: "EditorChrome",
|
|
1791
1792
|
props: {
|
|
1792
1793
|
options: {}
|
|
1793
1794
|
},
|
|
1794
1795
|
setup(o) {
|
|
1795
|
-
return
|
|
1796
|
+
return At(o.options), (e, l) => (i(), h("span", dl));
|
|
1796
1797
|
}
|
|
1797
1798
|
});
|
|
1798
|
-
function
|
|
1799
|
+
function fl(o) {
|
|
1799
1800
|
const t = N(0);
|
|
1800
1801
|
let e = 0;
|
|
1801
1802
|
const l = () => {
|
|
@@ -1826,13 +1827,13 @@ function cl(o) {
|
|
|
1826
1827
|
))), d = x(() => Object.values(a.value).reduce((c, g) => ({ filled: c.filled + g.required.filled, total: c.total + g.required.total }), { filled: 0, total: 0 }));
|
|
1827
1828
|
return { states: a, totals: d };
|
|
1828
1829
|
}
|
|
1829
|
-
const
|
|
1830
|
+
const ml = {
|
|
1830
1831
|
class: "grid min-w-0 grid-cols-1 items-start gap-8 lg:grid-cols-[12.5rem_minmax(0,1fr)]",
|
|
1831
1832
|
"data-test": "editor-page"
|
|
1832
|
-
},
|
|
1833
|
+
}, vl = {
|
|
1833
1834
|
key: 0,
|
|
1834
1835
|
class: "sticky top-[calc(var(--app-bar-height)+1.5rem+var(--shell-banner-h,0px))] hidden min-w-0 flex-col gap-4 self-start lg:flex"
|
|
1835
|
-
},
|
|
1836
|
+
}, Lo = /* @__PURE__ */ K({
|
|
1836
1837
|
__name: "EditorPage",
|
|
1837
1838
|
props: {
|
|
1838
1839
|
title: {},
|
|
@@ -1844,7 +1845,7 @@ const fl = {
|
|
|
1844
1845
|
},
|
|
1845
1846
|
emits: ["save", "cancel"],
|
|
1846
1847
|
setup(o, { emit: t }) {
|
|
1847
|
-
const e = o, l = t, { t: s } = Z(), a = Ie(), d =
|
|
1848
|
+
const e = o, l = t, { t: s } = Z(), a = Ie(), d = Pt(), { states: c, totals: g } = fl(d), k = A("content"), w = x(
|
|
1848
1849
|
() => e.form ? {
|
|
1849
1850
|
form: e.form,
|
|
1850
1851
|
label: () => e.saveLabel ?? s("core.actions.save"),
|
|
@@ -1869,19 +1870,19 @@ const fl = {
|
|
|
1869
1870
|
const u = d.sections.value.find((p) => p.id === r)?.element;
|
|
1870
1871
|
u && ke(() => ze(u));
|
|
1871
1872
|
}
|
|
1872
|
-
return (r, u) => (i(), q(
|
|
1873
|
+
return (r, u) => (i(), q(Gt, {
|
|
1873
1874
|
title: e.title,
|
|
1874
1875
|
back: e.back,
|
|
1875
1876
|
width: "content"
|
|
1876
1877
|
}, re({
|
|
1877
1878
|
default: m(() => [
|
|
1878
|
-
w.value ? (i(), q(
|
|
1879
|
+
w.value ? (i(), q(cl, {
|
|
1879
1880
|
key: 0,
|
|
1880
1881
|
options: w.value
|
|
1881
1882
|
}, null, 8, ["options"])) : D("", !0),
|
|
1882
|
-
b("div",
|
|
1883
|
-
n(a) ? D("", !0) : (i(), h("aside",
|
|
1884
|
-
M(
|
|
1883
|
+
b("div", ml, [
|
|
1884
|
+
n(a) ? D("", !0) : (i(), h("aside", vl, [
|
|
1885
|
+
M(Nt, {
|
|
1885
1886
|
standalone: "",
|
|
1886
1887
|
states: n(c),
|
|
1887
1888
|
progress: n(g),
|
|
@@ -1903,7 +1904,7 @@ const fl = {
|
|
|
1903
1904
|
z(r.$slots, "default")
|
|
1904
1905
|
], 512)
|
|
1905
1906
|
]),
|
|
1906
|
-
n(a) ? (i(), q(
|
|
1907
|
+
n(a) ? (i(), q(Kt, {
|
|
1907
1908
|
key: 1,
|
|
1908
1909
|
states: n(c)
|
|
1909
1910
|
}, null, 8, ["states"])) : D("", !0)
|
|
@@ -1940,7 +1941,7 @@ const fl = {
|
|
|
1940
1941
|
} : void 0
|
|
1941
1942
|
]), 1032, ["title", "back"]));
|
|
1942
1943
|
}
|
|
1943
|
-
}),
|
|
1944
|
+
}), pl = ["value", "aria-label", "disabled", "aria-invalid", "placeholder"], To = /* @__PURE__ */ K({
|
|
1944
1945
|
__name: "NumberCell",
|
|
1945
1946
|
props: /* @__PURE__ */ ne({
|
|
1946
1947
|
label: {},
|
|
@@ -1974,7 +1975,7 @@ const fl = {
|
|
|
1974
1975
|
class: R(["rounded-control bg-fill px-2 py-1 text-right text-body tabular-nums text-content-strong transition-[background-color,box-shadow] duration-motion-fast ease-motion-standard placeholder:text-content-disabled focus:bg-surface-cell focus:outline-none focus:ring-[1.5px] focus:ring-inset focus:ring-border-focus disabled:opacity-45", [t.wide ? "w-28" : "w-16", t.invalid ? "bg-status-danger-surface ring-[1.5px] ring-inset ring-border-destructive" : ""]]),
|
|
1975
1976
|
onInput: l,
|
|
1976
1977
|
onBlur: s
|
|
1977
|
-
}, null, 42,
|
|
1978
|
+
}, null, 42, pl));
|
|
1978
1979
|
}
|
|
1979
1980
|
}), Ne = "vue-core:step-draft:";
|
|
1980
1981
|
function Ke(o) {
|
|
@@ -1984,7 +1985,7 @@ function Ke(o) {
|
|
|
1984
1985
|
return null;
|
|
1985
1986
|
}
|
|
1986
1987
|
}
|
|
1987
|
-
function
|
|
1988
|
+
function bl(o) {
|
|
1988
1989
|
try {
|
|
1989
1990
|
const t = Ke(o)?.getItem(Ne + o.key);
|
|
1990
1991
|
if (!t) return null;
|
|
@@ -1994,7 +1995,7 @@ function pl(o) {
|
|
|
1994
1995
|
return null;
|
|
1995
1996
|
}
|
|
1996
1997
|
}
|
|
1997
|
-
function
|
|
1998
|
+
function gl(o, t) {
|
|
1998
1999
|
try {
|
|
1999
2000
|
const e = Ke(o);
|
|
2000
2001
|
if (!e) return !1;
|
|
@@ -2010,14 +2011,14 @@ function Xe(o) {
|
|
|
2010
2011
|
} catch {
|
|
2011
2012
|
}
|
|
2012
2013
|
}
|
|
2013
|
-
function
|
|
2014
|
+
function yl(o, t) {
|
|
2014
2015
|
for (const [e, l] of Object.entries(o)) {
|
|
2015
2016
|
if (!(e in t)) continue;
|
|
2016
2017
|
const s = t[e];
|
|
2017
2018
|
(s === null || l === null || l === void 0 || typeof s == typeof l && Array.isArray(s) === Array.isArray(l)) && (o[e] = s);
|
|
2018
2019
|
}
|
|
2019
2020
|
}
|
|
2020
|
-
function
|
|
2021
|
+
function zo(o, t) {
|
|
2021
2022
|
const { t: e } = Z(), l = x(() => qe(t.steps));
|
|
2022
2023
|
if (l.value.length === 0) throw new Error("useStepForm: a flow needs at least one step.");
|
|
2023
2024
|
const s = N(l.value[0].name), a = Ae(/* @__PURE__ */ new Set()), d = Ae(/* @__PURE__ */ new Set([l.value[0].name])), c = N(null), g = N(!1), k = N(0), w = N(!1), y = N(!1);
|
|
@@ -2100,16 +2101,16 @@ function Lo(o, t) {
|
|
|
2100
2101
|
Xe(U), y.value = !1;
|
|
2101
2102
|
return;
|
|
2102
2103
|
}
|
|
2103
|
-
y.value =
|
|
2104
|
+
y.value = gl(U, { values: Se(o.values), step: s.value, passed: [...a] });
|
|
2104
2105
|
}
|
|
2105
2106
|
}
|
|
2106
2107
|
function le() {
|
|
2107
2108
|
r = !0, clearTimeout(P), P = void 0, y.value = !1, U && Xe(U);
|
|
2108
2109
|
}
|
|
2109
2110
|
if (U) {
|
|
2110
|
-
const v =
|
|
2111
|
+
const v = bl(U);
|
|
2111
2112
|
if (v) {
|
|
2112
|
-
|
|
2113
|
+
yl(o.values, v.values);
|
|
2113
2114
|
const V = l.value.map((f) => f.name);
|
|
2114
2115
|
V.includes(v.step) && (s.value = v.step);
|
|
2115
2116
|
for (const f of v.passed) V.includes(f) && a.add(f);
|
|
@@ -2127,7 +2128,7 @@ function Lo(o, t) {
|
|
|
2127
2128
|
});
|
|
2128
2129
|
}
|
|
2129
2130
|
const { confirmDiscard: he } = Re(() => !r && o.dirty.value);
|
|
2130
|
-
Ze(
|
|
2131
|
+
Ze(Ht, null) && Ut(() => (r || le(), !0));
|
|
2131
2132
|
async function fe() {
|
|
2132
2133
|
const v = await he();
|
|
2133
2134
|
return v && le(), v;
|
|
@@ -2166,10 +2167,10 @@ function Lo(o, t) {
|
|
|
2166
2167
|
bindDialog: () => ({ subtitle: $.value, primaryLabel: j.value, status: I.value ? "processing" : "idle", beforeDismiss: fe })
|
|
2167
2168
|
};
|
|
2168
2169
|
}
|
|
2169
|
-
const
|
|
2170
|
+
const hl = {
|
|
2170
2171
|
class: "flex flex-wrap items-center gap-2.5 border-t border-border-separator pt-3.5",
|
|
2171
2172
|
"data-test": "step-navigation"
|
|
2172
|
-
},
|
|
2173
|
+
}, kl = /* @__PURE__ */ K({
|
|
2173
2174
|
__name: "StepNavigation",
|
|
2174
2175
|
props: {
|
|
2175
2176
|
flow: {}
|
|
@@ -2177,7 +2178,7 @@ const yl = {
|
|
|
2177
2178
|
emits: ["cancel"],
|
|
2178
2179
|
setup(o) {
|
|
2179
2180
|
const t = o, { t: e } = Z();
|
|
2180
|
-
return (l, s) => (i(), h("div",
|
|
2181
|
+
return (l, s) => (i(), h("div", hl, [
|
|
2181
2182
|
t.flow.backLabel.value ? (i(), q(ge, {
|
|
2182
2183
|
key: 0,
|
|
2183
2184
|
prominence: "plain",
|
|
@@ -2215,15 +2216,15 @@ const yl = {
|
|
|
2215
2216
|
}, 8, ["processing"])
|
|
2216
2217
|
]));
|
|
2217
2218
|
}
|
|
2218
|
-
}),
|
|
2219
|
+
}), xl = ["aria-label"], wl = ["aria-current"], _l = ["aria-label"], $l = {
|
|
2219
2220
|
key: 2,
|
|
2220
2221
|
class: "sr-only"
|
|
2221
|
-
},
|
|
2222
|
+
}, Sl = {
|
|
2222
2223
|
key: 1,
|
|
2223
2224
|
"data-test": "step-dots",
|
|
2224
2225
|
class: "flex justify-center gap-1.5",
|
|
2225
2226
|
"aria-hidden": "true"
|
|
2226
|
-
},
|
|
2227
|
+
}, Cl = ["data-state"], Fl = /* @__PURE__ */ K({
|
|
2227
2228
|
__name: "StepProgress",
|
|
2228
2229
|
props: {
|
|
2229
2230
|
flow: {},
|
|
@@ -2273,29 +2274,29 @@ const yl = {
|
|
|
2273
2274
|
"data-test": "step-errors",
|
|
2274
2275
|
"aria-label": n(e)("core.form.sections.errors", { count: a.errors }),
|
|
2275
2276
|
class: "min-w-4.5 shrink-0 rounded-full bg-status-danger-solid px-1.5 text-center text-caption font-semibold text-white"
|
|
2276
|
-
}, C(a.errors), 9,
|
|
2277
|
-
a.state === "done" ? (i(), h("span",
|
|
2277
|
+
}, C(a.errors), 9, _l)) : D("", !0),
|
|
2278
|
+
a.state === "done" ? (i(), h("span", $l, C(n(e)("core.steps.done")), 1)) : D("", !0)
|
|
2278
2279
|
], 2)
|
|
2279
2280
|
]),
|
|
2280
2281
|
_: 2
|
|
2281
2282
|
}, 1032, ["type", "disabled", "data-test", "data-state", "class", "onClick"]))
|
|
2282
|
-
], 8,
|
|
2283
|
-
], 12,
|
|
2283
|
+
], 8, wl))), 128))
|
|
2284
|
+
], 12, xl)) : (i(), h("div", Sl, [
|
|
2284
2285
|
(i(!0), h(se, null, xe(t.flow.steps.value, (a) => (i(), h("span", {
|
|
2285
2286
|
key: a.name,
|
|
2286
2287
|
class: R(["h-1.5 rounded-full transition-all duration-motion-fast", [a.state === "current" ? "w-4.5" : "w-1.5", a.errors > 0 ? "bg-status-danger-solid" : a.state === "todo" && a.position > t.flow.index.value ? "bg-fill-strong" : "bg-tint"]]),
|
|
2287
2288
|
"data-state": a.errors > 0 ? "error" : a.state
|
|
2288
|
-
}, null, 10,
|
|
2289
|
+
}, null, 10, Cl))), 128))
|
|
2289
2290
|
]));
|
|
2290
2291
|
}
|
|
2291
|
-
}),
|
|
2292
|
+
}), Bl = ["data-step"], Ll = {
|
|
2292
2293
|
class: "sr-only",
|
|
2293
2294
|
"aria-live": "polite"
|
|
2294
|
-
},
|
|
2295
|
+
}, Tl = {
|
|
2295
2296
|
key: 1,
|
|
2296
2297
|
"data-test": "step-restored",
|
|
2297
2298
|
class: "flex items-center gap-2 text-footnote text-content-muted"
|
|
2298
|
-
},
|
|
2299
|
+
}, Do = /* @__PURE__ */ K({
|
|
2299
2300
|
__name: "StepForm",
|
|
2300
2301
|
props: {
|
|
2301
2302
|
flow: {},
|
|
@@ -2314,13 +2315,13 @@ const yl = {
|
|
|
2314
2315
|
"data-test": "step-form",
|
|
2315
2316
|
"data-step": t.flow.current.value.name
|
|
2316
2317
|
}, [
|
|
2317
|
-
t.progress !== "none" ? (i(), q(
|
|
2318
|
+
t.progress !== "none" ? (i(), q(Fl, {
|
|
2318
2319
|
key: 0,
|
|
2319
2320
|
flow: t.flow,
|
|
2320
2321
|
progress: t.progress
|
|
2321
2322
|
}, null, 8, ["flow", "progress"])) : D("", !0),
|
|
2322
|
-
b("p",
|
|
2323
|
-
t.flow.restored.value ? (i(), h("div",
|
|
2323
|
+
b("p", Ll, C(t.flow.subtitle.value), 1),
|
|
2324
|
+
t.flow.restored.value ? (i(), h("div", Tl, [
|
|
2324
2325
|
b("span", null, C(n(e)("core.steps.restored")), 1),
|
|
2325
2326
|
M(ge, {
|
|
2326
2327
|
prominence: "link",
|
|
@@ -2355,86 +2356,86 @@ const yl = {
|
|
|
2355
2356
|
"aria-hidden": "true"
|
|
2356
2357
|
}, null, -1))
|
|
2357
2358
|
], 34)),
|
|
2358
|
-
t.navigation === "inline" ? (i(), q(
|
|
2359
|
+
t.navigation === "inline" ? (i(), q(kl, {
|
|
2359
2360
|
key: 2,
|
|
2360
2361
|
flow: t.flow,
|
|
2361
2362
|
onCancel: a[2] || (a[2] = (d) => s.$emit("cancel"))
|
|
2362
2363
|
}, null, 8, ["flow"])) : D("", !0)
|
|
2363
|
-
], 8,
|
|
2364
|
+
], 8, Bl));
|
|
2364
2365
|
}
|
|
2365
2366
|
});
|
|
2366
2367
|
export {
|
|
2367
2368
|
xt as Calendar,
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2369
|
+
mo as CardSelectField,
|
|
2370
|
+
vo as CheckboxField,
|
|
2371
|
+
po as ChoiceChips,
|
|
2372
|
+
bo as ComboField,
|
|
2373
|
+
Eo as CommandDialog,
|
|
2374
|
+
ln as DateField,
|
|
2375
|
+
go as DateTimeField,
|
|
2376
|
+
Lo as EditorPage,
|
|
2377
|
+
Mo as ErrorBag,
|
|
2377
2378
|
ye as Field,
|
|
2378
|
-
|
|
2379
|
+
yo as FileField,
|
|
2379
2380
|
Me as FormErrors,
|
|
2380
2381
|
zt as FormGroup,
|
|
2381
|
-
|
|
2382
|
-
|
|
2382
|
+
ho as FormGroupButton,
|
|
2383
|
+
ko as FormIndent,
|
|
2383
2384
|
dt as FormRow,
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2385
|
+
mn as FormView,
|
|
2386
|
+
rn as GroupEditAction,
|
|
2387
|
+
Co as GroupSheet,
|
|
2388
|
+
xo as I18nField,
|
|
2389
|
+
Wo as LeaveGuardRoot,
|
|
2390
|
+
Ko as MissingLeaveGuardRootError,
|
|
2391
|
+
wo as MoneyField,
|
|
2392
|
+
_o as MonthYearField,
|
|
2393
|
+
$o as MultiSelectField,
|
|
2394
|
+
To as NumberCell,
|
|
2395
|
+
Mt as NumberField,
|
|
2395
2396
|
Ue as OptionList,
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2397
|
+
xn as OtpInput,
|
|
2398
|
+
So as PhotoField,
|
|
2399
|
+
Fo as RecordGroupScope,
|
|
2400
|
+
_n as SegmentedField,
|
|
2401
|
+
pn as SelectField,
|
|
2402
|
+
Do as StepForm,
|
|
2403
|
+
kl as StepNavigation,
|
|
2404
|
+
Fl as StepProgress,
|
|
2405
|
+
Sn as SwitchField,
|
|
2406
|
+
Zo as TextField,
|
|
2407
|
+
Fn as TextareaField,
|
|
2408
|
+
nn as TimeField,
|
|
2408
2409
|
lt as checkFile,
|
|
2409
|
-
|
|
2410
|
-
|
|
2410
|
+
un as createFieldGroups,
|
|
2411
|
+
Po as createLeaveGuard,
|
|
2411
2412
|
ce as fieldDefaults,
|
|
2412
|
-
|
|
2413
|
+
Io as fieldKey,
|
|
2413
2414
|
de as fieldProps,
|
|
2414
2415
|
ze as focusFirstError,
|
|
2415
2416
|
mt as formEditableKey,
|
|
2416
2417
|
Be as formatBytes,
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2418
|
+
yn as groupOptions,
|
|
2419
|
+
Ao as installLeaveGuard,
|
|
2420
|
+
Ho as leaveGuardKey,
|
|
2421
|
+
hn as matchOptions,
|
|
2422
|
+
Ta as missingLocales,
|
|
2423
|
+
dn as provideRecordGroups,
|
|
2424
|
+
tn as recentChoicesKey,
|
|
2424
2425
|
Dt as recordGroupsKey,
|
|
2425
|
-
|
|
2426
|
-
|
|
2426
|
+
Go as useCommand,
|
|
2427
|
+
Yt as useDirtySnapshot,
|
|
2427
2428
|
et as useFieldMode,
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2429
|
+
Oo as useForm,
|
|
2430
|
+
Bo as useGroupSheet,
|
|
2431
|
+
jo as useHiddenFieldErrors,
|
|
2431
2432
|
Re as useLeaveGuard,
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2433
|
+
Uo as useLeaveGuardContext,
|
|
2434
|
+
bn as useOptions,
|
|
2435
|
+
cn as useRecordGroups,
|
|
2436
|
+
Xo as useResourceForm,
|
|
2437
|
+
At as useSaveChrome,
|
|
2438
|
+
fl as useSectionStates,
|
|
2439
|
+
fo as useSheetDiscardGuard,
|
|
2440
|
+
zo as useStepForm
|
|
2440
2441
|
};
|