@wssto2/vue-core 0.4.13 → 0.4.15
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-LlfIPWsJ.js → ActionRow.vue_vue_type_script_setup_true_lang-CkvS5W6K.js} +1 -1
- package/dist/{Activity-DhVVSf60.js → Activity-4q26REYj.js} +6 -6
- package/dist/{Changes-Czs32zlz.js → Changes-CKIuGF8O.js} +5 -5
- package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DkpFEHUw.js → CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js} +2 -2
- package/dist/{DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js → DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js} +17 -16
- package/dist/{DeadLetters-DBUALYXL.js → DeadLetters-DPGcQOz1.js} +4 -4
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js +285 -0
- package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-DG2zdG_a.js → FormGroup.vue_vue_type_script_setup_true_lang-noYI9QMk.js} +1 -1
- package/dist/{FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js → FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js} +2 -2
- package/dist/{General-UWbJQLc8.js → General-CUA9b3ML.js} +10 -10
- package/dist/{NewRolePage-Dm7urTx0.js → NewRolePage-DBfCvDWA.js} +3 -3
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +126 -0
- package/dist/{ProfilePage-Ep75xf-u.js → ProfilePage-On-eAiJ-.js} +41 -41
- package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CDZjkiU5.js → RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js} +44 -44
- package/dist/{RolePage-CQc_wV3b.js → RolePage-B8oul55j.js} +8 -8
- package/dist/{RolesPage-CG7InZ_u.js → RolesPage-DsXVivdj.js} +5 -5
- package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js → SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js} +7 -6
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js +443 -0
- package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js → SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js} +2 -2
- package/dist/{Sessions-_w3Tnevz.js → Sessions-BTyXDEuY.js} +4 -4
- package/dist/{SettingsPage-BNdeH-_0.js → SettingsPage-DHTmMgif.js} +9 -9
- package/dist/{SignIn-DIjshMpl.js → SignIn-DU4DE2wj.js} +6 -6
- package/dist/{SignInPage-C3-LHjo2.js → SignInPage-BA22kyOp.js} +3 -3
- package/dist/{SignIns-DNdLctGJ.js → SignIns-C8QAZBaL.js} +3 -3
- package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-CM8yp9JQ.js → SwitchField.vue_vue_type_script_setup_true_lang-B2Z2hy_h.js} +11 -10
- package/dist/{TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js → TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js} +27 -26
- package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js → TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js} +9 -8
- package/dist/{TimeField.vue_vue_type_script_setup_true_lang-DWfAUlnz.js → TimeField.vue_vue_type_script_setup_true_lang-Dr0h-V_8.js} +25 -24
- package/dist/{UserRecord-C0JZgK47.js → UserRecord-D1BNmYp9.js} +10 -10
- package/dist/{UsersList-Bc8dCuRB.js → UsersList-ltx3G23-.js} +8 -8
- package/dist/access/index.js +1 -1
- package/dist/app/application.d.ts +13 -0
- package/dist/app/index.js +160 -159
- package/dist/collection/index.js +1 -1
- package/dist/control-CX9BG2UB.js +320 -0
- package/dist/describeError-B-NMa--w.js +53 -0
- package/dist/fieldMessages-DV6sESpn.js +25 -0
- package/dist/form/DateField.vue.d.ts +1 -0
- package/dist/form/DateTimeField.vue.d.ts +1 -0
- package/dist/form/Field.vue.d.ts +1 -0
- package/dist/form/FileField.vue.d.ts +1 -0
- package/dist/form/FormErrors.vue.d.ts +1 -1
- package/dist/form/FormRow.vue.d.ts +3 -0
- package/dist/form/I18nField.vue.d.ts +1 -0
- package/dist/form/MoneyField.vue.d.ts +1 -0
- package/dist/form/MonthYearField.vue.d.ts +1 -0
- package/dist/form/NumberField.vue.d.ts +5 -0
- package/dist/form/PhotoField.vue.d.ts +1 -0
- package/dist/form/SelectField.vue.d.ts +5 -6
- package/dist/form/SwitchField.vue.d.ts +1 -0
- package/dist/form/TextField.vue.d.ts +1 -0
- package/dist/form/TextareaField.vue.d.ts +1 -0
- package/dist/form/TimeField.vue.d.ts +1 -0
- package/dist/form/field.d.ts +3 -0
- package/dist/form/index.d.ts +2 -0
- package/dist/form/index.js +469 -456
- package/dist/form/useForm.d.ts +2 -2
- package/dist/form/useHiddenFieldErrors.d.ts +23 -0
- package/dist/form/useSaveChrome.d.ts +8 -3
- package/dist/i18n/describeError.d.ts +19 -1
- package/dist/i18n/index.d.ts +2 -2
- package/dist/i18n/index.js +8 -6
- package/dist/identity/fieldMessages.d.ts +1 -1
- package/dist/identity/index.js +1 -1
- package/dist/{index-Cz4LtYKa.js → index-BCw_Ki6z.js} +2 -2
- package/dist/{index-BesWsiIg.js → index-Chh4z9xW.js} +10 -10
- package/dist/{index-BEDhdJQE.js → index-DwdVrW6q.js} +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/phone/PhoneField.vue.d.ts +1 -0
- package/dist/phone/index.js +66 -65
- package/dist/resource/index.js +1 -1
- package/dist/resource/resource.d.ts +1 -1
- package/dist/{routeResource-DstM0hvf.js → routeResource-DlTsGTg_.js} +36 -32
- package/dist/state/index.js +1 -1
- package/dist/state/useLoad.d.ts +7 -0
- package/dist/{status-DfAac6vw.js → status-cWCAMAmW.js} +1 -1
- package/dist/{useCommand-BkONMn3X.js → useCommand-B-N6HJOz.js} +1 -1
- package/dist/useLoad-M7V-AVwR.js +43 -0
- package/dist/{useResourceForm-D1hIpwW5.js → useResourceForm-CP2lCwmD.js} +1 -1
- package/dist/useSaveChrome-7huA3FzR.js +26 -0
- package/package.json +1 -1
- package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +0 -276
- package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +0 -113
- package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +0 -437
- package/dist/control-7EP4tjYy.js +0 -313
- package/dist/describeError-Ctga6GcS.js +0 -41
- package/dist/fieldMessages-C3Rpbktw.js +0 -25
- package/dist/useLoad-CYRVx6HW.js +0 -39
- package/dist/useSaveChrome-DuWm0Czf.js +0 -25
|
@@ -5,7 +5,7 @@ import { d as z } from "./defineRoutes-BGAdiIrt.js";
|
|
|
5
5
|
import { d as I } from "./context-Ch1r4fdN.js";
|
|
6
6
|
import { defineComponent as E, computed as b, watch as $, openBlock as x, createElementBlock as G, ref as D, useTemplateRef as oe, watchEffect as re, onBeforeUnmount as ae, createVNode as _, unref as o, createElementVNode as m, toDisplayString as f, createCommentVNode as F, useId as ce, createBlock as N, Teleport as ue, normalizeClass as j, createTextVNode as O, withCtx as T, mergeProps as le, h as me } from "vue";
|
|
7
7
|
import { u as pe } from "./environment-Dva-SG8D.js";
|
|
8
|
-
import { u as P } from "./describeError-
|
|
8
|
+
import { u as P } from "./describeError-B-NMa--w.js";
|
|
9
9
|
import { t as k } from "./toast-CqSDTWRX.js";
|
|
10
10
|
import { u as A, h as q, f as M } from "./platform-q3cjODLx.js";
|
|
11
11
|
import { a as R } from "./error-CD7x0Jrz.js";
|
|
@@ -14,15 +14,15 @@ import { useRouter as J, useRoute as de } from "vue-router";
|
|
|
14
14
|
import { _ as Q } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
15
15
|
import { _ as L } from "./Button.vue_vue_type_script_setup_true_lang-CL9Qh5yq.js";
|
|
16
16
|
import { u as fe } from "./leaveGuard-Cc8yeLxM.js";
|
|
17
|
-
import { _ as he } from "./FormView.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as ye } from "./TextField.vue_vue_type_script_setup_true_lang-
|
|
17
|
+
import { _ as he } from "./FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js";
|
|
18
|
+
import { _ as ye } from "./TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js";
|
|
19
19
|
import { u as ge } from "./mediaQuery-CygcXmFW.js";
|
|
20
20
|
import { u as ve } from "./useDialog-CXR3hN0G.js";
|
|
21
21
|
import { c as _e } from "./closeOverlays-CjVsIrpL.js";
|
|
22
|
-
import { u as be } from "./FormErrors.vue_vue_type_script_setup_true_lang-
|
|
22
|
+
import { u as be } from "./FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
23
23
|
import { u as we } from "./format-B8mJm946.js";
|
|
24
24
|
import { _ as xe } from "./AccountMenuItem.vue_vue_type_script_setup_true_lang-CPeNxh5K.js";
|
|
25
|
-
import { b as Ee } from "./routeResource-
|
|
25
|
+
import { b as Ee } from "./routeResource-DlTsGTg_.js";
|
|
26
26
|
import { _ as Se } from "./AccessGate.vue_vue_type_script_setup_true_lang-DcbZBINh.js";
|
|
27
27
|
const w = {
|
|
28
28
|
login: i("POST", "/v1/auth/login", { public: !0 }),
|
|
@@ -315,7 +315,7 @@ function Cs(e) {
|
|
|
315
315
|
const Ye = async (e) => {
|
|
316
316
|
await B(e.http);
|
|
317
317
|
}, Je = z({
|
|
318
|
-
login: { name: "login", path: "/login", component: () => import("./SignInPage-
|
|
318
|
+
login: { name: "login", path: "/login", component: () => import("./SignInPage-BA22kyOp.js"), meta: { public: !0, titleKey: "core.identity.signin.title" } }
|
|
319
319
|
});
|
|
320
320
|
function Os(e = {}) {
|
|
321
321
|
return H({
|
|
@@ -334,7 +334,7 @@ function Os(e = {}) {
|
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
const Z = z({
|
|
337
|
-
index: { name: "profile", path: "/profile", component: () => import("./ProfilePage-
|
|
337
|
+
index: { name: "profile", path: "/profile", component: () => import("./ProfilePage-On-eAiJ-.js"), meta: { titleKey: "core.profile.title" } }
|
|
338
338
|
}), Qe = /* @__PURE__ */ E({
|
|
339
339
|
__name: "ProfileMenuItem",
|
|
340
340
|
setup(e) {
|
|
@@ -358,19 +358,19 @@ function es(e) {
|
|
|
358
358
|
return { name: `users.record.${e.path}`, path: e.path, component: s, meta: { ...e.meta } };
|
|
359
359
|
}
|
|
360
360
|
const W = "iam.user:view", qs = "iam.user:manage", ss = "iam.user.activity:view", ee = z({
|
|
361
|
-
index: { name: "users.index", path: "/users", component: () => import("./UsersList-
|
|
361
|
+
index: { name: "users.index", path: "/users", component: () => import("./UsersList-ltx3G23-.js"), meta: { access: W, titleKey: "core.users.title" } },
|
|
362
362
|
record: {
|
|
363
363
|
name: "users.record",
|
|
364
364
|
path: "/users/:id",
|
|
365
|
-
component: () => import("./UserRecord-
|
|
365
|
+
component: () => import("./UserRecord-D1BNmYp9.js"),
|
|
366
366
|
meta: { access: W, titleKey: "core.users.title", remountOnParam: "id" },
|
|
367
367
|
children: [
|
|
368
|
-
{ name: "users.record.general", path: "general", component: () => import("./General-
|
|
369
|
-
{ name: "users.record.signin", path: "signin", component: () => import("./SignIn-
|
|
370
|
-
{ name: "users.record.sessions", path: "sessions", component: () => import("./Sessions-
|
|
371
|
-
{ name: "users.record.signins", path: "signins", component: () => import("./SignIns-
|
|
372
|
-
{ name: "users.record.changes", path: "changes", component: () => import("./Changes-
|
|
373
|
-
{ name: "users.record.activity", path: "activity", component: () => import("./Activity-
|
|
368
|
+
{ name: "users.record.general", path: "general", component: () => import("./General-CUA9b3ML.js"), meta: { section: { labelKey: "core.users.sections.general", icon: "user3Line", groupKey: "core.users.section_groups.person" } } },
|
|
369
|
+
{ name: "users.record.signin", path: "signin", component: () => import("./SignIn-DU4DE2wj.js"), meta: { section: { labelKey: "core.users.sections.signin", icon: "key2Line", groupKey: "core.users.section_groups.access" } } },
|
|
370
|
+
{ name: "users.record.sessions", path: "sessions", component: () => import("./Sessions-BTyXDEuY.js"), meta: { section: { labelKey: "core.users.sections.sessions", icon: "deviceLine", groupKey: "core.users.section_groups.access" } } },
|
|
371
|
+
{ name: "users.record.signins", path: "signins", component: () => import("./SignIns-C8QAZBaL.js"), meta: { section: { labelKey: "core.users.sections.signins", icon: "timeFill", groupKey: "core.users.section_groups.activity" } } },
|
|
372
|
+
{ name: "users.record.changes", path: "changes", component: () => import("./Changes-CKIuGF8O.js"), meta: { section: { labelKey: "core.users.sections.changes", icon: "edit", groupKey: "core.users.section_groups.activity" } } },
|
|
373
|
+
{ name: "users.record.activity", path: "activity", component: () => import("./Activity-4q26REYj.js"), meta: { access: ss, section: { labelKey: "core.users.sections.activity", icon: "listCheck", groupKey: "core.users.section_groups.activity" } } }
|
|
374
374
|
]
|
|
375
375
|
}
|
|
376
376
|
});
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** The version of @wssto2/vue-core (kept equal to package.json by index.test.ts). */
|
|
2
|
-
export declare const version = "0.4.
|
|
2
|
+
export declare const version = "0.4.15";
|
package/dist/index.js
CHANGED
|
@@ -47,6 +47,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
47
47
|
required: boolean;
|
|
48
48
|
width: Exclude<ControlWidth, "content">;
|
|
49
49
|
presentation: "control" | "value";
|
|
50
|
+
labelHidden: boolean;
|
|
50
51
|
hint: string;
|
|
51
52
|
editable: boolean;
|
|
52
53
|
lockedReason: string;
|
package/dist/phone/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as fe, useModel as me, useTemplateRef as F, ref as
|
|
1
|
+
import { defineComponent as fe, useModel as me, useTemplateRef as F, ref as E, computed as g, watch as ne, nextTick as A, openBlock as w, createElementBlock as $, createElementVNode as f, normalizeClass as P, unref as i, createVNode as M, toDisplayString as T, normalizeStyle as ge, Fragment as ee, renderList as le, createCommentVNode as J, withModifiers as xe, withDirectives as we, vModelText as _e, mergeModels as ae, inject as ke, shallowRef as Ce, onBeforeUnmount as $e, createBlock as De, mergeProps as Me, createSlots as Te, withCtx as se, createTextVNode as Se, renderSlot as Ne, mergeDefaults as Ie } from "vue";
|
|
2
2
|
import { useI18n as pe } from "vue-i18n";
|
|
3
3
|
import { b as Pe } from "../controlSurface-t7OEFESJ.js";
|
|
4
|
-
import { a as Ve, c as Oe, _ as Re, f as
|
|
4
|
+
import { a as Ve, c as Oe, _ as Re, f as Be, b as Ee } from "../control-CX9BG2UB.js";
|
|
5
5
|
import { _ as q } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
6
6
|
import { _ as ie } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
|
|
7
7
|
import { u as ze } from "../anchored-Cj4--8dT.js";
|
|
@@ -13,62 +13,62 @@ function he(t) {
|
|
|
13
13
|
return Le.country_calling_codes[t]?.[0];
|
|
14
14
|
}
|
|
15
15
|
const W = (t) => Ae(t), de = (t) => `+${W(t)}`, te = () => qe();
|
|
16
|
-
function Ke(t,
|
|
16
|
+
function Ke(t, a) {
|
|
17
17
|
const o = `+${t}`;
|
|
18
|
-
return new L().input(`${o}${
|
|
18
|
+
return new L().input(`${o}${a}`).slice(o.length).trim();
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
return
|
|
20
|
+
function re(t, a, o) {
|
|
21
|
+
const r = o.slice(0, Math.max(0, We - a.length));
|
|
22
|
+
return r === "" ? { country: t, e164: "", text: "" } : { country: t, e164: `+${a}${r}`, text: Ke(a, r) };
|
|
23
23
|
}
|
|
24
|
-
function oe(t,
|
|
24
|
+
function oe(t, a) {
|
|
25
25
|
const o = t.trim().replace(/^00(?=\d)/, "+");
|
|
26
26
|
if (o.startsWith("+")) {
|
|
27
27
|
const l = new L();
|
|
28
28
|
l.input(o);
|
|
29
29
|
const x = l.getCallingCode();
|
|
30
|
-
if (!x) return { country:
|
|
31
|
-
const p = l.getCountry() ?? (W(
|
|
32
|
-
return
|
|
30
|
+
if (!x) return { country: a, e164: "", text: o.replace(/[^\d+]/g, "") };
|
|
31
|
+
const p = l.getCountry() ?? (W(a) === x ? a : he(x) ?? a);
|
|
32
|
+
return re(p, x, l.getNumber()?.nationalNumber ?? "");
|
|
33
33
|
}
|
|
34
|
-
const
|
|
35
|
-
return
|
|
34
|
+
const r = new L(a);
|
|
35
|
+
return r.input(o.replace(/\D/g, "")), re(a, W(a), r.getNumber()?.nationalNumber ?? "");
|
|
36
36
|
}
|
|
37
|
-
function Ue(t,
|
|
38
|
-
return
|
|
37
|
+
function Ue(t, a) {
|
|
38
|
+
return re(a, W(a), t.text.replace(/\D/g, ""));
|
|
39
39
|
}
|
|
40
40
|
function je(t) {
|
|
41
41
|
return t.startsWith("+") ? new L().input(t) : t;
|
|
42
42
|
}
|
|
43
43
|
const He = { MOBILE: "mobile", FIXED_LINE: "landline", TOLL_FREE: "toll_free", PREMIUM_RATE: "premium_rate", VOIP: "voip" };
|
|
44
44
|
function Ge(t) {
|
|
45
|
-
const
|
|
45
|
+
const a = t ? ve(t) : void 0, o = a?.isValid() ? a.getType() : void 0;
|
|
46
46
|
return o ? He[o] : void 0;
|
|
47
47
|
}
|
|
48
48
|
function Xe(t) {
|
|
49
|
-
const
|
|
50
|
-
|
|
51
|
-
const o =
|
|
52
|
-
return
|
|
49
|
+
const a = new L();
|
|
50
|
+
a.input(t);
|
|
51
|
+
const o = a.getCallingCode();
|
|
52
|
+
return a.getCountry() ?? (o ? he(o) : void 0);
|
|
53
53
|
}
|
|
54
54
|
function ye(t) {
|
|
55
55
|
if (t === "") return null;
|
|
56
|
-
const
|
|
57
|
-
return o === "TOO_SHORT" ? { kind: "too_short", country:
|
|
56
|
+
const a = Xe(t), o = Fe(t);
|
|
57
|
+
return o === "TOO_SHORT" ? { kind: "too_short", country: a } : o === "TOO_LONG" ? { kind: "too_long", country: a } : o !== void 0 ? { kind: "invalid", country: a } : ve(t)?.isValid() ? null : { kind: "invalid", country: a };
|
|
58
58
|
}
|
|
59
59
|
const $t = (t) => ye(t) === null;
|
|
60
|
-
function be(t,
|
|
60
|
+
function be(t, a) {
|
|
61
61
|
try {
|
|
62
|
-
return new Intl.DisplayNames([
|
|
62
|
+
return new Intl.DisplayNames([a], { type: "region" }).of(t) ?? t;
|
|
63
63
|
} catch {
|
|
64
64
|
return t;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
function Ye(t,
|
|
68
|
-
const
|
|
69
|
-
if (
|
|
70
|
-
const l =
|
|
71
|
-
return o.filter((h) => _ ? W(h).startsWith(l) : p(h).includes(
|
|
67
|
+
function Ye(t, a, o) {
|
|
68
|
+
const r = ue(t.trim());
|
|
69
|
+
if (r === "") return o;
|
|
70
|
+
const l = r.replace(/\D/g, ""), x = new Intl.DisplayNames([a], { type: "region" }), p = (h) => ue(x.of(h) ?? h), _ = r.startsWith("+") || /^\d+$/.test(r);
|
|
71
|
+
return o.filter((h) => _ ? W(h).startsWith(l) : p(h).includes(r) || h.toLowerCase() === r);
|
|
72
72
|
}
|
|
73
73
|
const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tabular-nums" }, Ze = ["id", "aria-label"], et = {
|
|
74
74
|
key: 0,
|
|
@@ -78,9 +78,9 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
78
78
|
key: 0,
|
|
79
79
|
class: "px-3 py-2 text-footnote text-content-muted",
|
|
80
80
|
role: "status"
|
|
81
|
-
},
|
|
81
|
+
}, at = { class: "border-t border-border-separator px-3 py-2" }, rt = ["aria-controls", "aria-activedescendant", "aria-label", "placeholder"], lt = /* @__PURE__ */ fe({
|
|
82
82
|
__name: "CountryPicker",
|
|
83
|
-
props: /* @__PURE__ */
|
|
83
|
+
props: /* @__PURE__ */ ae({
|
|
84
84
|
id: {},
|
|
85
85
|
common: {},
|
|
86
86
|
disabled: { type: Boolean },
|
|
@@ -89,21 +89,21 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
89
89
|
modelValue: { required: !0 },
|
|
90
90
|
modelModifiers: {}
|
|
91
91
|
}),
|
|
92
|
-
emits: /* @__PURE__ */
|
|
93
|
-
setup(t, { expose:
|
|
94
|
-
const
|
|
92
|
+
emits: /* @__PURE__ */ ae(["picked"], ["update:modelValue"]),
|
|
93
|
+
setup(t, { expose: a, emit: o }) {
|
|
94
|
+
const r = t, l = me(t, "modelValue"), x = o, { t: p, locale: _ } = pe(), h = F("root"), V = F("trigger"), k = F("panel"), K = F("search"), C = E(!1), v = E(""), d = E(0), O = g(() => {
|
|
95
95
|
const e = /* @__PURE__ */ new Map();
|
|
96
96
|
for (const s of te()) e.set(s, be(s, _.value));
|
|
97
97
|
return e;
|
|
98
98
|
}), S = (e) => O.value.get(e) ?? e, D = g(() => {
|
|
99
|
-
const e =
|
|
99
|
+
const e = r.common.filter((c) => O.value.has(c));
|
|
100
100
|
if (v.value.trim() !== "") {
|
|
101
101
|
const c = Ye(v.value, _.value, te());
|
|
102
102
|
return [{ title: null, countries: [...c.filter((n) => e.includes(n)), ...c.filter((n) => !e.includes(n))] }];
|
|
103
103
|
}
|
|
104
104
|
const s = te().filter((c) => !e.includes(c)).sort((c, n) => S(c).localeCompare(S(n), _.value));
|
|
105
105
|
return [{ title: p("core.form.phone.common"), countries: e }, { title: p("core.form.phone.all"), countries: s }].filter((c) => c.countries.length > 0);
|
|
106
|
-
}), y = g(() => D.value.flatMap((e) => e.countries)), z = g(() => D.value.map((e, s) => D.value.slice(0, s).reduce((c, n) => c + n.countries.length, 0))), U = (e) => `${
|
|
106
|
+
}), y = g(() => D.value.flatMap((e) => e.countries)), z = g(() => D.value.map((e, s) => D.value.slice(0, s).reduce((c, n) => c + n.countries.length, 0))), U = (e) => `${r.id}-country-${e}`, { style: Q } = ze(k, {
|
|
107
107
|
reference: () => V.value,
|
|
108
108
|
placement: () => "bottom-start",
|
|
109
109
|
offset: 4,
|
|
@@ -113,7 +113,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
113
113
|
}
|
|
114
114
|
});
|
|
115
115
|
async function j() {
|
|
116
|
-
|
|
116
|
+
r.disabled || C.value || (v.value = "", d.value = Math.max(0, y.value.indexOf(l.value)), C.value = !0, await A(), K.value?.focus());
|
|
117
117
|
}
|
|
118
118
|
function N(e) {
|
|
119
119
|
C.value = !1, e && V.value?.focus();
|
|
@@ -136,28 +136,28 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
136
136
|
s && R(s);
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function B(e) {
|
|
140
140
|
(e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), j());
|
|
141
141
|
}
|
|
142
|
-
return
|
|
142
|
+
return a({ focus: () => V.value?.focus() }), (e, s) => (w(), $("div", {
|
|
143
143
|
ref_key: "root",
|
|
144
144
|
ref: h,
|
|
145
145
|
class: "shrink-0",
|
|
146
146
|
onFocusout: H
|
|
147
147
|
}, [
|
|
148
148
|
f("button", {
|
|
149
|
-
id: `${
|
|
149
|
+
id: `${r.id}-country`,
|
|
150
150
|
ref_key: "trigger",
|
|
151
151
|
ref: V,
|
|
152
152
|
type: "button",
|
|
153
|
-
disabled:
|
|
153
|
+
disabled: r.disabled,
|
|
154
154
|
"aria-label": i(p)("core.form.phone.country", { country: S(l.value) }),
|
|
155
155
|
"aria-haspopup": "listbox",
|
|
156
156
|
"aria-expanded": C.value,
|
|
157
157
|
"data-test": "country-button",
|
|
158
|
-
class: P(["flex h-full min-h-8 cursor-pointer items-center gap-1.5 whitespace-nowrap text-body font-medium text-content-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus disabled:cursor-not-allowed compact:border-r compact:border-border-separator",
|
|
158
|
+
class: P(["flex h-full min-h-8 cursor-pointer items-center gap-1.5 whitespace-nowrap text-body font-medium text-content-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus disabled:cursor-not-allowed compact:border-r compact:border-border-separator", r.surface]),
|
|
159
159
|
onClick: s[0] || (s[0] = (c) => C.value ? N(!0) : j()),
|
|
160
|
-
onKeydown:
|
|
160
|
+
onKeydown: B
|
|
161
161
|
}, [
|
|
162
162
|
M(ie, { country: l.value }, null, 8, ["country"]),
|
|
163
163
|
f("span", Qe, T(i(de)(l.value)), 1),
|
|
@@ -176,7 +176,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
176
176
|
class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float"
|
|
177
177
|
}, [
|
|
178
178
|
f("div", {
|
|
179
|
-
id: `${
|
|
179
|
+
id: `${r.id}-countries`,
|
|
180
180
|
role: "listbox",
|
|
181
181
|
"aria-label": i(p)("core.form.phone.countries"),
|
|
182
182
|
class: "min-h-0 flex-1 overflow-y-auto p-2"
|
|
@@ -207,7 +207,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
207
207
|
], 64))), 128)),
|
|
208
208
|
y.value.length === 0 ? (w(), $("p", nt, T(i(p)("core.form.phone.no_match")), 1)) : J("", !0)
|
|
209
209
|
], 8, Ze),
|
|
210
|
-
f("div",
|
|
210
|
+
f("div", at, [
|
|
211
211
|
we(f("input", {
|
|
212
212
|
ref_key: "search",
|
|
213
213
|
ref: K,
|
|
@@ -217,14 +217,14 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
217
217
|
autocomplete: "off",
|
|
218
218
|
"aria-autocomplete": "list",
|
|
219
219
|
"aria-expanded": "true",
|
|
220
|
-
"aria-controls": `${
|
|
220
|
+
"aria-controls": `${r.id}-countries`,
|
|
221
221
|
"aria-activedescendant": y.value[d.value] ? U(y.value[d.value]) : void 0,
|
|
222
222
|
"aria-label": i(p)("core.form.phone.search"),
|
|
223
223
|
placeholder: i(p)("core.form.phone.search"),
|
|
224
224
|
"data-test": "country-search",
|
|
225
225
|
class: "block w-full border-0 bg-transparent p-0 text-body text-content-strong placeholder:text-content-muted focus:outline-none focus:ring-0",
|
|
226
226
|
onKeydown: G
|
|
227
|
-
}, null, 40,
|
|
227
|
+
}, null, 40, rt), [
|
|
228
228
|
[_e, v.value]
|
|
229
229
|
])
|
|
230
230
|
])
|
|
@@ -240,8 +240,9 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
240
240
|
role: "status"
|
|
241
241
|
}, Dt = /* @__PURE__ */ fe({
|
|
242
242
|
__name: "PhoneField",
|
|
243
|
-
props: /* @__PURE__ */
|
|
243
|
+
props: /* @__PURE__ */ ae(/* @__PURE__ */ Ie({
|
|
244
244
|
label: {},
|
|
245
|
+
labelHidden: { type: Boolean },
|
|
245
246
|
hint: {},
|
|
246
247
|
error: {},
|
|
247
248
|
required: { type: Boolean },
|
|
@@ -254,22 +255,22 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
254
255
|
commonCountries: {},
|
|
255
256
|
placeholder: {},
|
|
256
257
|
width: {}
|
|
257
|
-
}, { ...
|
|
258
|
+
}, { ...Ee, defaultCountry: void 0, commonCountries: void 0, placeholder: void 0, width: "lg" }), {
|
|
258
259
|
modelValue: { default: "" },
|
|
259
260
|
modelModifiers: {}
|
|
260
261
|
}),
|
|
261
262
|
emits: ["update:modelValue"],
|
|
262
|
-
setup(t, { expose:
|
|
263
|
-
const o = t,
|
|
263
|
+
setup(t, { expose: a }) {
|
|
264
|
+
const o = t, r = me(t, "modelValue"), { t: l, locale: x } = pe(), p = ke(st, {}), _ = !!Ve(), h = Oe("text", () => o.error || R.value ? "error" : o.disabled ? "locked" : "rest"), V = g(() => _ ? Pe(o.width) : "w-full"), k = F("input"), K = g(() => o.defaultCountry ?? p.defaultCountry ?? (o.commonCountries ?? p.commonCountries ?? ce)[0] ?? "HR"), C = g(() => o.commonCountries ?? p.commonCountries ?? ce), v = Ce(K.value), d = E("");
|
|
264
265
|
let O = null;
|
|
265
266
|
function S(n) {
|
|
266
267
|
v.value = n.country, d.value = n.text;
|
|
267
268
|
}
|
|
268
|
-
ne(() =>
|
|
269
|
+
ne(() => r.value, (n) => {
|
|
269
270
|
n !== O && (O = null, S(oe(n, v.value)));
|
|
270
271
|
}, { immediate: !0 });
|
|
271
272
|
function D(n) {
|
|
272
|
-
S(n), O = n.e164,
|
|
273
|
+
S(n), O = n.e164, r.value = n.e164;
|
|
273
274
|
}
|
|
274
275
|
const y = (n) => n.replace(/\D/g, "").length;
|
|
275
276
|
async function z(n) {
|
|
@@ -296,24 +297,24 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
296
297
|
/^(\+|00)\d/.test(u) && (n.preventDefault(), D(oe(u, v.value)), A(() => k.value?.setSelectionRange(d.value.length, d.value.length)));
|
|
297
298
|
}
|
|
298
299
|
function j(n) {
|
|
299
|
-
D(Ue({ country: v.value, e164:
|
|
300
|
+
D(Ue({ country: v.value, e164: r.value, text: d.value }, n)), A(() => k.value?.focus());
|
|
300
301
|
}
|
|
301
|
-
const N =
|
|
302
|
+
const N = E(!1), R = g(() => N.value && r.value !== "" ? ye(r.value) : null), H = g(() => {
|
|
302
303
|
const n = R.value;
|
|
303
304
|
if (n)
|
|
304
305
|
return n.country ? l(`core.form.phone.${n.kind}`, { country: be(n.country, x.value) }) : l("core.form.phone.invalid_any");
|
|
305
|
-
}), G = g(() =>
|
|
306
|
+
}), G = g(() => r.value !== "" && !R.value ? Ge(r.value) : void 0), B = g(() => je(r.value)), e = E(!1);
|
|
306
307
|
let s = null;
|
|
307
308
|
async function c() {
|
|
308
309
|
try {
|
|
309
|
-
await navigator.clipboard.writeText(
|
|
310
|
+
await navigator.clipboard.writeText(B.value);
|
|
310
311
|
} catch {
|
|
311
312
|
return;
|
|
312
313
|
}
|
|
313
314
|
e.value = !0, s && clearTimeout(s), s = setTimeout(() => e.value = !1, 1800);
|
|
314
315
|
}
|
|
315
|
-
return $e(() => s && clearTimeout(s)),
|
|
316
|
-
value:
|
|
316
|
+
return $e(() => s && clearTimeout(s)), a({ focus: () => k.value?.focus() }), (n, u) => (w(), De(Re, Me({ ...i(Be)(o), error: o.error ?? H.value }, {
|
|
317
|
+
value: r.value === "" ? null : B.value,
|
|
317
318
|
"value-style": "numeric"
|
|
318
319
|
}), Te({
|
|
319
320
|
default: se(({ id: b, describedby: m, invalid: I }) => [
|
|
@@ -367,7 +368,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
367
368
|
]),
|
|
368
369
|
_: 2
|
|
369
370
|
}, [
|
|
370
|
-
|
|
371
|
+
r.value !== "" ? {
|
|
371
372
|
name: "readonly",
|
|
372
373
|
fn: se(() => [
|
|
373
374
|
f("div", {
|
|
@@ -376,9 +377,9 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
376
377
|
}, [
|
|
377
378
|
f("span", {
|
|
378
379
|
class: P(["flex-auto whitespace-nowrap text-body tabular-nums text-content-strong", _ ? "text-right" : ""])
|
|
379
|
-
}, T(
|
|
380
|
+
}, T(B.value), 3),
|
|
380
381
|
f("a", {
|
|
381
|
-
href: `tel:${
|
|
382
|
+
href: `tel:${r.value}`,
|
|
382
383
|
"aria-label": i(l)("core.form.phone.call"),
|
|
383
384
|
title: i(l)("core.form.phone.call"),
|
|
384
385
|
"data-test": "phone-call",
|
|
@@ -390,7 +391,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
390
391
|
})
|
|
391
392
|
], 8, dt),
|
|
392
393
|
f("a", {
|
|
393
|
-
href: `sms:${
|
|
394
|
+
href: `sms:${r.value}`,
|
|
394
395
|
"aria-label": i(l)("core.form.phone.message"),
|
|
395
396
|
title: i(l)("core.form.phone.message"),
|
|
396
397
|
"data-test": "phone-message",
|
|
@@ -402,8 +403,8 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
|
|
|
402
403
|
})
|
|
403
404
|
], 8, ft),
|
|
404
405
|
Ne(n.$slots, "actions", {
|
|
405
|
-
number:
|
|
406
|
-
formatted:
|
|
406
|
+
number: r.value,
|
|
407
|
+
formatted: B.value
|
|
407
408
|
}),
|
|
408
409
|
f("button", {
|
|
409
410
|
type: "button",
|
package/dist/resource/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { p as o, u as r, a, b as u } from "../routeResource-
|
|
1
|
+
import { p as o, u as r, a, b as u } from "../routeResource-DlTsGTg_.js";
|
|
2
2
|
import { _ as R, a as c } from "../ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js";
|
|
3
3
|
export {
|
|
4
4
|
R as RecordPager,
|
|
@@ -48,7 +48,7 @@ export interface ResourceOptions<T, Id extends ResourceId = number> {
|
|
|
48
48
|
readonly load: (id: Id, context: ResourceContext) => Promise<T>;
|
|
49
49
|
/** Which identity a value belongs to, for `update`; by default its `id`. A value with neither is taken to be the current one. */
|
|
50
50
|
readonly identify?: (value: T) => Id;
|
|
51
|
-
/** The text of a failed read; by default a sentence per kind of failure, in the app's language. */
|
|
51
|
+
/** The text of a failed read; by default the application's describer, then a sentence per kind of failure, in the app's language. */
|
|
52
52
|
readonly errorMessage?: (error: unknown) => string;
|
|
53
53
|
}
|
|
54
54
|
/** The default identity: a positive safe integer written in digits. */
|
|
@@ -1,23 +1,27 @@
|
|
|
1
|
-
import { computed as f, toValue as
|
|
1
|
+
import { computed as f, toValue as A, shallowRef as w, watch as R, getCurrentScope as C, onScopeDispose as I, provide as j, hasInjectionContext as E, inject as F } from "vue";
|
|
2
2
|
import { useRoute as M } from "vue-router";
|
|
3
3
|
import { M as h } from "./context-Ch1r4fdN.js";
|
|
4
4
|
import { useI18n as S } from "vue-i18n";
|
|
5
5
|
import { a as p } from "./error-CD7x0Jrz.js";
|
|
6
|
-
|
|
6
|
+
import { a as _ } from "./describeError-B-NMa--w.js";
|
|
7
|
+
function D(e) {
|
|
7
8
|
if (!/^\d+$/.test(e)) return null;
|
|
8
9
|
const n = Number(e);
|
|
9
10
|
return Number.isSafeInteger(n) && n > 0 ? n : null;
|
|
10
11
|
}
|
|
11
|
-
const
|
|
12
|
-
function
|
|
13
|
-
const { t: n } = S(),
|
|
14
|
-
let u = null,
|
|
15
|
-
const g = e.errorMessage ?? ((r) =>
|
|
12
|
+
const N = (e) => typeof e == "object" && e !== null && "state" in e && "reload" in e && "id" in e, O = (e) => typeof e == "object" && e !== null && "id" in e;
|
|
13
|
+
function V(e) {
|
|
14
|
+
const { t: n } = S(), s = N(e.for) ? e.for : null, a = f(() => s ? s.id.value : A(e.for)), d = f(() => s !== null && s.data.value === null), t = w({ status: "loading" });
|
|
15
|
+
let u = null, l = 0, v = null;
|
|
16
|
+
const k = _(), g = e.errorMessage ?? ((r) => {
|
|
17
|
+
const o = k?.(r);
|
|
18
|
+
return o !== void 0 ? o : p(r) && r.kind === "network" ? n("core.resource.offline") : p(r) && r.kind === "forbidden" ? n("core.no_access.body") : n("core.resource.unavailable");
|
|
19
|
+
});
|
|
16
20
|
function m() {
|
|
17
|
-
return v?.abort(), v = null, ++
|
|
21
|
+
return v?.abort(), v = null, ++l;
|
|
18
22
|
}
|
|
19
23
|
async function y() {
|
|
20
|
-
const r =
|
|
24
|
+
const r = a.value, o = m();
|
|
21
25
|
if (d.value) {
|
|
22
26
|
u = null, t.value = { status: "loading" };
|
|
23
27
|
return;
|
|
@@ -32,51 +36,51 @@ function D(e) {
|
|
|
32
36
|
v = b;
|
|
33
37
|
try {
|
|
34
38
|
const c = await e.load(r, { signal: b.signal });
|
|
35
|
-
if (
|
|
39
|
+
if (o !== l) return;
|
|
36
40
|
u = r, t.value = { status: "loaded", value: c };
|
|
37
41
|
} catch (c) {
|
|
38
|
-
if (
|
|
42
|
+
if (o !== l) return;
|
|
39
43
|
p(c) && c.kind === "notFound" ? (u = null, t.value = { status: "failed", reason: "notFound", error: n("core.resource.not_found.body") }) : i ? t.value = { status: "stale", value: i.value, error: g(c) } : (u = null, t.value = { status: "failed", reason: "unavailable", error: g(c) });
|
|
40
44
|
}
|
|
41
45
|
}
|
|
42
|
-
function
|
|
43
|
-
const
|
|
44
|
-
return
|
|
46
|
+
function x(r) {
|
|
47
|
+
const o = a.value, i = e.identify ? e.identify(r) : O(r) ? r.id : o;
|
|
48
|
+
return o === null || i !== o ? !1 : (m(), u = o, t.value = { status: "loaded", value: r }, !0);
|
|
45
49
|
}
|
|
46
|
-
return
|
|
47
|
-
id:
|
|
50
|
+
return R([a, d], () => void y(), { immediate: !0, flush: "sync" }), C() && I(m), {
|
|
51
|
+
id: a,
|
|
48
52
|
state: f(() => t.value),
|
|
49
53
|
data: f(() => "value" in t.value ? t.value.value : null),
|
|
50
54
|
reload: y,
|
|
51
|
-
update:
|
|
55
|
+
update: x
|
|
52
56
|
};
|
|
53
57
|
}
|
|
54
|
-
function
|
|
55
|
-
const n = M(),
|
|
58
|
+
function J(e) {
|
|
59
|
+
const n = M(), s = e.parse ?? D, a = w(null);
|
|
56
60
|
let d = !1;
|
|
57
|
-
|
|
61
|
+
R(
|
|
58
62
|
() => n.params[e.param],
|
|
59
63
|
(u) => {
|
|
60
64
|
if (u === void 0 && d) return;
|
|
61
65
|
d = !0;
|
|
62
|
-
const
|
|
63
|
-
|
|
66
|
+
const l = Array.isArray(u) ? u[0] : u;
|
|
67
|
+
a.value = l === void 0 ? null : s(l);
|
|
64
68
|
},
|
|
65
69
|
{ immediate: !0, flush: "sync" }
|
|
66
70
|
);
|
|
67
|
-
const t =
|
|
71
|
+
const t = V({ ...e, for: a });
|
|
68
72
|
return e.key && j(e.key, t), t;
|
|
69
73
|
}
|
|
70
|
-
function
|
|
74
|
+
function K(e) {
|
|
71
75
|
const n = e.description ?? "route resource";
|
|
72
|
-
if (!
|
|
73
|
-
const
|
|
74
|
-
if (!
|
|
75
|
-
return
|
|
76
|
+
if (!E()) throw new h(n, "outside-setup");
|
|
77
|
+
const s = F(e, null);
|
|
78
|
+
if (!s) throw new h(n, "not-provided");
|
|
79
|
+
return s;
|
|
76
80
|
}
|
|
77
81
|
export {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
+
J as a,
|
|
83
|
+
K as b,
|
|
84
|
+
D as p,
|
|
85
|
+
V as u
|
|
82
86
|
};
|
package/dist/state/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { _ as q } from "../EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp
|
|
|
7
7
|
import { defineComponent as m, computed as k, openBlock as e, createElementBlock as n, normalizeClass as p, createVNode as d, unref as i, createElementVNode as u, renderSlot as f, createBlock as S, toDisplayString as l, createCommentVNode as c } from "vue";
|
|
8
8
|
import { _ as x } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
|
|
9
9
|
import { useI18n as g } from "vue-i18n";
|
|
10
|
-
import { u as J } from "../useLoad-
|
|
10
|
+
import { u as J } from "../useLoad-M7V-AVwR.js";
|
|
11
11
|
import { D as Q, W as X, u as Y } from "../useWaitStatus-fsacMl4W.js";
|
|
12
12
|
const b = ["amber", "lime", "teal", "cyan", "blue", "indigo", "violet", "fuchsia", "pink"], V = /* @__PURE__ */ m({
|
|
13
13
|
__name: "FieldNote",
|
package/dist/state/useLoad.d.ts
CHANGED
|
@@ -3,6 +3,13 @@ import type { AsyncState } from "./async";
|
|
|
3
3
|
export interface LoadContext {
|
|
4
4
|
/** Aborted when the load is no longer wanted: a newer load or an `update` superseded it, the watch source changed, the scope ended. */
|
|
5
5
|
readonly signal: AbortSignal;
|
|
6
|
+
/**
|
|
7
|
+
* Ends this load with nothing to show and nothing to report, for a page that is leaving instead (a 403 that
|
|
8
|
+
* redirects): the state stays as it is (loading, or the value on screen) and no error flashes on the way out.
|
|
9
|
+
*
|
|
10
|
+
* if (isForbidden(error)) { void router.replace(elsewhere); return abandon(); }
|
|
11
|
+
*/
|
|
12
|
+
readonly abandon: () => never;
|
|
6
13
|
}
|
|
7
14
|
export interface LoadOptions {
|
|
8
15
|
/**
|
|
@@ -3,7 +3,7 @@ import { useI18n as V } from "vue-i18n";
|
|
|
3
3
|
import { f as q } from "./useDialog-CXR3hN0G.js";
|
|
4
4
|
import { _ as A } from "./Modal.vue_vue_type_script_setup_true_lang-DpBb8ans.js";
|
|
5
5
|
import { D as F } from "./useWaitStatus-fsacMl4W.js";
|
|
6
|
-
import { _ as O, u as I } from "./FormErrors.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as O, u as I } from "./FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js";
|
|
7
7
|
import { a as R } from "./leaveGuard-Cc8yeLxM.js";
|
|
8
8
|
const d = "input:not([type=hidden]):not([disabled]), textarea:not([disabled]), select:not([disabled]), button:not([disabled]), [tabindex]:not([tabindex='-1'])";
|
|
9
9
|
async function U(t = document, n) {
|