@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.
Files changed (91) hide show
  1. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-LlfIPWsJ.js → ActionRow.vue_vue_type_script_setup_true_lang-CkvS5W6K.js} +1 -1
  2. package/dist/{Activity-DhVVSf60.js → Activity-4q26REYj.js} +6 -6
  3. package/dist/{Changes-Czs32zlz.js → Changes-CKIuGF8O.js} +5 -5
  4. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DkpFEHUw.js → CollectionPage.vue_vue_type_script_setup_true_lang-B17cUOzj.js} +2 -2
  5. package/dist/{DateField.vue_vue_type_script_setup_true_lang-GVasv8ao.js → DateField.vue_vue_type_script_setup_true_lang-DehwWm78.js} +17 -16
  6. package/dist/{DeadLetters-DBUALYXL.js → DeadLetters-DPGcQOz1.js} +4 -4
  7. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DWcVKZM3.js +285 -0
  8. 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
  9. package/dist/{FormView.vue_vue_type_script_setup_true_lang-cr0xNDXP.js → FormView.vue_vue_type_script_setup_true_lang-BcIbTMHN.js} +2 -2
  10. package/dist/{General-UWbJQLc8.js → General-CUA9b3ML.js} +10 -10
  11. package/dist/{NewRolePage-Dm7urTx0.js → NewRolePage-DBfCvDWA.js} +3 -3
  12. package/dist/NumberField.vue_vue_type_script_setup_true_lang-Dm6FfJ2T.js +126 -0
  13. package/dist/{ProfilePage-Ep75xf-u.js → ProfilePage-On-eAiJ-.js} +41 -41
  14. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CDZjkiU5.js → RoleEditor.vue_vue_type_script_setup_true_lang-fvAf3rQm.js} +44 -44
  15. package/dist/{RolePage-CQc_wV3b.js → RolePage-B8oul55j.js} +8 -8
  16. package/dist/{RolesPage-CG7InZ_u.js → RolesPage-DsXVivdj.js} +5 -5
  17. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-BMqWlpsL.js → SegmentedField.vue_vue_type_script_setup_true_lang-B2d55hrh.js} +7 -6
  18. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DedKLLQK.js +443 -0
  19. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-D4k5QeWS.js → SessionList.vue_vue_type_script_setup_true_lang-CirlMdHb.js} +2 -2
  20. package/dist/{Sessions-_w3Tnevz.js → Sessions-BTyXDEuY.js} +4 -4
  21. package/dist/{SettingsPage-BNdeH-_0.js → SettingsPage-DHTmMgif.js} +9 -9
  22. package/dist/{SignIn-DIjshMpl.js → SignIn-DU4DE2wj.js} +6 -6
  23. package/dist/{SignInPage-C3-LHjo2.js → SignInPage-BA22kyOp.js} +3 -3
  24. package/dist/{SignIns-DNdLctGJ.js → SignIns-C8QAZBaL.js} +3 -3
  25. 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
  26. package/dist/{TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js → TextField.vue_vue_type_script_setup_true_lang-nqnGG7Zc.js} +27 -26
  27. package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-CqAWfABZ.js → TextareaField.vue_vue_type_script_setup_true_lang-BgIQyYtf.js} +9 -8
  28. 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
  29. package/dist/{UserRecord-C0JZgK47.js → UserRecord-D1BNmYp9.js} +10 -10
  30. package/dist/{UsersList-Bc8dCuRB.js → UsersList-ltx3G23-.js} +8 -8
  31. package/dist/access/index.js +1 -1
  32. package/dist/app/application.d.ts +13 -0
  33. package/dist/app/index.js +160 -159
  34. package/dist/collection/index.js +1 -1
  35. package/dist/control-CX9BG2UB.js +320 -0
  36. package/dist/describeError-B-NMa--w.js +53 -0
  37. package/dist/fieldMessages-DV6sESpn.js +25 -0
  38. package/dist/form/DateField.vue.d.ts +1 -0
  39. package/dist/form/DateTimeField.vue.d.ts +1 -0
  40. package/dist/form/Field.vue.d.ts +1 -0
  41. package/dist/form/FileField.vue.d.ts +1 -0
  42. package/dist/form/FormErrors.vue.d.ts +1 -1
  43. package/dist/form/FormRow.vue.d.ts +3 -0
  44. package/dist/form/I18nField.vue.d.ts +1 -0
  45. package/dist/form/MoneyField.vue.d.ts +1 -0
  46. package/dist/form/MonthYearField.vue.d.ts +1 -0
  47. package/dist/form/NumberField.vue.d.ts +5 -0
  48. package/dist/form/PhotoField.vue.d.ts +1 -0
  49. package/dist/form/SelectField.vue.d.ts +5 -6
  50. package/dist/form/SwitchField.vue.d.ts +1 -0
  51. package/dist/form/TextField.vue.d.ts +1 -0
  52. package/dist/form/TextareaField.vue.d.ts +1 -0
  53. package/dist/form/TimeField.vue.d.ts +1 -0
  54. package/dist/form/field.d.ts +3 -0
  55. package/dist/form/index.d.ts +2 -0
  56. package/dist/form/index.js +469 -456
  57. package/dist/form/useForm.d.ts +2 -2
  58. package/dist/form/useHiddenFieldErrors.d.ts +23 -0
  59. package/dist/form/useSaveChrome.d.ts +8 -3
  60. package/dist/i18n/describeError.d.ts +19 -1
  61. package/dist/i18n/index.d.ts +2 -2
  62. package/dist/i18n/index.js +8 -6
  63. package/dist/identity/fieldMessages.d.ts +1 -1
  64. package/dist/identity/index.js +1 -1
  65. package/dist/{index-Cz4LtYKa.js → index-BCw_Ki6z.js} +2 -2
  66. package/dist/{index-BesWsiIg.js → index-Chh4z9xW.js} +10 -10
  67. package/dist/{index-BEDhdJQE.js → index-DwdVrW6q.js} +15 -15
  68. package/dist/index.d.ts +1 -1
  69. package/dist/index.js +1 -1
  70. package/dist/notifications/index.js +1 -1
  71. package/dist/phone/PhoneField.vue.d.ts +1 -0
  72. package/dist/phone/index.js +66 -65
  73. package/dist/resource/index.js +1 -1
  74. package/dist/resource/resource.d.ts +1 -1
  75. package/dist/{routeResource-DstM0hvf.js → routeResource-DlTsGTg_.js} +36 -32
  76. package/dist/state/index.js +1 -1
  77. package/dist/state/useLoad.d.ts +7 -0
  78. package/dist/{status-DfAac6vw.js → status-cWCAMAmW.js} +1 -1
  79. package/dist/{useCommand-BkONMn3X.js → useCommand-B-N6HJOz.js} +1 -1
  80. package/dist/useLoad-M7V-AVwR.js +43 -0
  81. package/dist/{useResourceForm-D1hIpwW5.js → useResourceForm-CP2lCwmD.js} +1 -1
  82. package/dist/useSaveChrome-7huA3FzR.js +26 -0
  83. package/package.json +1 -1
  84. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-BQb7wLT0.js +0 -276
  85. package/dist/NumberField.vue_vue_type_script_setup_true_lang-C7N5nq0P.js +0 -113
  86. package/dist/SelectField.vue_vue_type_script_setup_true_lang-BJoAkBo2.js +0 -437
  87. package/dist/control-7EP4tjYy.js +0 -313
  88. package/dist/describeError-Ctga6GcS.js +0 -41
  89. package/dist/fieldMessages-C3Rpbktw.js +0 -25
  90. package/dist/useLoad-CYRVx6HW.js +0 -39
  91. 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-Ctga6GcS.js";
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-cr0xNDXP.js";
18
- import { _ as ye } from "./TextField.vue_vue_type_script_setup_true_lang-B9dwVASU.js";
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-BQb7wLT0.js";
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-DstM0hvf.js";
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-C3-LHjo2.js"), meta: { public: !0, titleKey: "core.identity.signin.title" } }
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-Ep75xf-u.js"), meta: { titleKey: "core.profile.title" } }
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-Bc8dCuRB.js"), meta: { access: W, titleKey: "core.users.title" } },
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-C0JZgK47.js"),
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-UWbJQLc8.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-DIjshMpl.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-_w3Tnevz.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-DNdLctGJ.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-Czs32zlz.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-DhVVSf60.js"), meta: { access: ss, section: { labelKey: "core.users.sections.activity", icon: "listCheck", groupKey: "core.users.section_groups.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.13";
2
+ export declare const version = "0.4.15";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- const o = "0.4.13";
1
+ const o = "0.4.15";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,4 +1,4 @@
1
- import { d as s, e as o, n as a, a as i, b as n } from "../index-Cz4LtYKa.js";
1
+ import { d as s, e as o, n as a, a as i, b as n } from "../index-BCw_Ki6z.js";
2
2
  export {
3
3
  s as deadLettersRoutes,
4
4
  o as eventsRoutes,
@@ -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;
@@ -1,7 +1,7 @@
1
- import { defineComponent as fe, useModel as me, useTemplateRef as F, ref as B, 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 re, 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";
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 Ee, b as Be } from "../control-7EP4tjYy.js";
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, r) {
16
+ function Ke(t, a) {
17
17
  const o = `+${t}`;
18
- return new L().input(`${o}${r}`).slice(o.length).trim();
18
+ return new L().input(`${o}${a}`).slice(o.length).trim();
19
19
  }
20
- function ae(t, r, o) {
21
- const a = o.slice(0, Math.max(0, We - r.length));
22
- return a === "" ? { country: t, e164: "", text: "" } : { country: t, e164: `+${r}${a}`, text: Ke(r, a) };
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, r) {
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: r, e164: "", text: o.replace(/[^\d+]/g, "") };
31
- const p = l.getCountry() ?? (W(r) === x ? r : he(x) ?? r);
32
- return ae(p, x, l.getNumber()?.nationalNumber ?? "");
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 a = new L(r);
35
- return a.input(o.replace(/\D/g, "")), ae(r, W(r), a.getNumber()?.nationalNumber ?? "");
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, r) {
38
- return ae(r, W(r), t.text.replace(/\D/g, ""));
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 r = t ? ve(t) : void 0, o = r?.isValid() ? r.getType() : void 0;
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 r = new L();
50
- r.input(t);
51
- const o = r.getCallingCode();
52
- return r.getCountry() ?? (o ? he(o) : void 0);
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 r = Xe(t), o = Fe(t);
57
- return o === "TOO_SHORT" ? { kind: "too_short", country: r } : o === "TOO_LONG" ? { kind: "too_long", country: r } : o !== void 0 ? { kind: "invalid", country: r } : ve(t)?.isValid() ? null : { kind: "invalid", country: r };
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, r) {
60
+ function be(t, a) {
61
61
  try {
62
- return new Intl.DisplayNames([r], { type: "region" }).of(t) ?? t;
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, r, o) {
68
- const a = ue(t.trim());
69
- if (a === "") return o;
70
- const l = a.replace(/\D/g, ""), x = new Intl.DisplayNames([r], { type: "region" }), p = (h) => ue(x.of(h) ?? h), _ = a.startsWith("+") || /^\d+$/.test(a);
71
- return o.filter((h) => _ ? W(h).startsWith(l) : p(h).includes(a) || h.toLowerCase() === a);
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
- }, rt = { class: "border-t border-border-separator px-3 py-2" }, at = ["aria-controls", "aria-activedescendant", "aria-label", "placeholder"], lt = /* @__PURE__ */ fe({
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__ */ re({
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__ */ re(["picked"], ["update:modelValue"]),
93
- setup(t, { expose: r, emit: o }) {
94
- const a = t, l = me(t, "modelValue"), x = o, { t: p, locale: _ } = pe(), h = F("root"), V = F("trigger"), k = F("panel"), K = F("search"), C = B(!1), v = B(""), d = B(0), O = g(() => {
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 = a.common.filter((c) => O.value.has(c));
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) => `${a.id}-country-${e}`, { style: Q } = ze(k, {
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
- a.disabled || C.value || (v.value = "", d.value = Math.max(0, y.value.indexOf(l.value)), C.value = !0, await A(), K.value?.focus());
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 E(e) {
139
+ function B(e) {
140
140
  (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), j());
141
141
  }
142
- return r({ focus: () => V.value?.focus() }), (e, s) => (w(), $("div", {
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: `${a.id}-country`,
149
+ id: `${r.id}-country`,
150
150
  ref_key: "trigger",
151
151
  ref: V,
152
152
  type: "button",
153
- disabled: a.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", a.surface]),
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: E
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: `${a.id}-countries`,
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", rt, [
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": `${a.id}-countries`,
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, at), [
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__ */ re(/* @__PURE__ */ Ie({
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
- }, { ...Be, defaultCountry: void 0, commonCountries: void 0, placeholder: void 0, width: "lg" }), {
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: r }) {
263
- const o = t, a = 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 = B("");
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(() => a.value, (n) => {
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, a.value = 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: a.value, text: d.value }, n)), A(() => k.value?.focus());
300
+ D(Ue({ country: v.value, e164: r.value, text: d.value }, n)), A(() => k.value?.focus());
300
301
  }
301
- const N = B(!1), R = g(() => N.value && a.value !== "" ? ye(a.value) : null), H = g(() => {
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(() => a.value !== "" && !R.value ? Ge(a.value) : void 0), E = g(() => je(a.value)), e = B(!1);
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(E.value);
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)), r({ focus: () => k.value?.focus() }), (n, u) => (w(), De(Re, Me({ ...i(Ee)(o), error: o.error ?? H.value }, {
316
- value: a.value === "" ? null : E.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
- a.value !== "" ? {
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(E.value), 3),
380
+ }, T(B.value), 3),
380
381
  f("a", {
381
- href: `tel:${a.value}`,
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:${a.value}`,
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: a.value,
406
- formatted: E.value
406
+ number: r.value,
407
+ formatted: B.value
407
408
  }),
408
409
  f("button", {
409
410
  type: "button",
@@ -1,4 +1,4 @@
1
- import { p as o, u as r, a, b as u } from "../routeResource-DstM0hvf.js";
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 x, shallowRef as R, watch as w, getCurrentScope as C, onScopeDispose as I, provide as j, hasInjectionContext as A, inject as F } from "vue";
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
- function _(e) {
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 E = (e) => typeof e == "object" && e !== null && "state" in e && "reload" in e && "id" in e, N = (e) => typeof e == "object" && e !== null && "id" in e;
12
- function D(e) {
13
- const { t: n } = S(), o = E(e.for) ? e.for : null, s = f(() => o ? o.id.value : x(e.for)), d = f(() => o !== null && o.data.value === null), t = R({ status: "loading" });
14
- let u = null, a = 0, v = null;
15
- const g = e.errorMessage ?? ((r) => p(r) && r.kind === "network" ? n("core.resource.offline") : p(r) && r.kind === "forbidden" ? n("core.no_access.body") : n("core.resource.unavailable"));
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, ++a;
21
+ return v?.abort(), v = null, ++l;
18
22
  }
19
23
  async function y() {
20
- const r = s.value, l = m();
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 (l !== a) return;
39
+ if (o !== l) return;
36
40
  u = r, t.value = { status: "loaded", value: c };
37
41
  } catch (c) {
38
- if (l !== a) return;
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 k(r) {
43
- const l = s.value, i = e.identify ? e.identify(r) : N(r) ? r.id : l;
44
- return l === null || i !== l ? !1 : (m(), u = l, t.value = { status: "loaded", value: r }, !0);
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 w([s, d], () => void y(), { immediate: !0, flush: "sync" }), C() && I(m), {
47
- id: s,
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: k
55
+ update: x
52
56
  };
53
57
  }
54
- function B(e) {
55
- const n = M(), o = e.parse ?? _, s = R(null);
58
+ function J(e) {
59
+ const n = M(), s = e.parse ?? D, a = w(null);
56
60
  let d = !1;
57
- w(
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 a = Array.isArray(u) ? u[0] : u;
63
- s.value = a === void 0 ? null : o(a);
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 = D({ ...e, for: s });
71
+ const t = V({ ...e, for: a });
68
72
  return e.key && j(e.key, t), t;
69
73
  }
70
- function G(e) {
74
+ function K(e) {
71
75
  const n = e.description ?? "route resource";
72
- if (!A()) throw new h(n, "outside-setup");
73
- const o = F(e, null);
74
- if (!o) throw new h(n, "not-provided");
75
- return o;
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
- B as a,
79
- G as b,
80
- _ as p,
81
- D as u
82
+ J as a,
83
+ K as b,
84
+ D as p,
85
+ V as u
82
86
  };
@@ -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-CYRVx6HW.js";
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",
@@ -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
  /**
@@ -1,5 +1,5 @@
1
1
  import { a, r as o } from "./http-D_D9YbLH.js";
2
- import { i as r } from "./index-BEDhdJQE.js";
2
+ import { i as r } from "./index-DwdVrW6q.js";
3
3
  const n = ["active", "locked", "inactive", "all"];
4
4
  function l(i) {
5
5
  return a({
@@ -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-BQb7wLT0.js";
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) {