@wssto2/vue-core 0.4.16 → 0.4.18

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 (74) hide show
  1. package/dist/{Activity-CVO3sJwy.js → Activity-DB9ABAMb.js} +3 -3
  2. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-B7qSUiee.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-Bm0sxqNz.js} +64 -63
  3. package/dist/{Changes-Bzvl3cEx.js → Changes-IIczcs6O.js} +2 -2
  4. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-CD5zZ29o.js → CollectionPage.vue_vue_type_script_setup_true_lang-CUoyYpaW.js} +6 -6
  5. 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
  6. package/dist/{DateField.vue_vue_type_script_setup_true_lang-BufoFwVQ.js → DateField.vue_vue_type_script_setup_true_lang-8mvjzRA-.js} +3 -3
  7. package/dist/{DeadLetters-DmwUtgf9.js → DeadLetters-Bq5YpnvT.js} +3 -3
  8. package/dist/{General-CUEjJBD4.js → General-DQruOZs2.js} +5 -5
  9. package/dist/{NewRolePage-Cyn-oV6r.js → NewRolePage-BcA8jBBQ.js} +3 -3
  10. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-a8kN3A7k.js → NumberField.vue_vue_type_script_setup_true_lang-CC8bKyR_.js} +1 -1
  11. package/dist/{Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js → Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js} +12 -12
  12. package/dist/{ProfilePage-I74SQBFO.js → ProfilePage-BqdCzyax.js} +7 -7
  13. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-D87Hs75d.js → RecordHeader.vue_vue_type_script_setup_true_lang-DijFQnU6.js} +1 -1
  14. 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
  15. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-Ce6wjptT.js → RoleEditor.vue_vue_type_script_setup_true_lang-DPpCuJWk.js} +2 -2
  16. package/dist/{RolePage-DWQP3qQl.js → RolePage-IES_ADt5.js} +6 -6
  17. package/dist/{RolesPage-BeEsHIQ2.js → RolesPage-D0K7tEL-.js} +3 -3
  18. 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
  19. 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
  20. package/dist/SelectField.vue_vue_type_script_setup_true_lang-DkbBJpYX.js +489 -0
  21. package/dist/{SessionList.vue_vue_type_script_setup_true_lang-DoUo68xE.js → SessionList.vue_vue_type_script_setup_true_lang-C0XvavBw.js} +1 -1
  22. package/dist/{Sessions-D8IXcb5M.js → Sessions-BfpiOhGs.js} +2 -2
  23. package/dist/{SettingsPage-DRQP2nrH.js → SettingsPage-BnEpURcU.js} +5 -5
  24. package/dist/{SignIn-CAZkovhb.js → SignIn-DrLE0gNr.js} +2 -2
  25. package/dist/{SignInPage-D-49oLY3.js → SignInPage-CRynZCU2.js} +2 -2
  26. package/dist/{SignInTable.vue_vue_type_script_setup_true_lang-CIv34nRn.js → SignInTable.vue_vue_type_script_setup_true_lang-7Z9EmLs-.js} +1 -1
  27. package/dist/{SignIns-BtNfgMLc.js → SignIns-BQ8tISWn.js} +2 -2
  28. package/dist/{TextField.vue_vue_type_script_setup_true_lang-D3-R5XXG.js → TextField.vue_vue_type_script_setup_true_lang-CWgn-vGl.js} +97 -90
  29. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-pAdLPYXA.js → TimeField.vue_vue_type_script_setup_true_lang-BebAIPeL.js} +3 -3
  30. 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
  31. package/dist/{UserRecord-BSbNuRFi.js → UserRecord-CqmPm4Fv.js} +7 -7
  32. package/dist/{UsersList-DPHxcaDm.js → UsersList-CHAray61.js} +8 -8
  33. package/dist/access/index.js +1 -1
  34. package/dist/app/index.js +1 -1
  35. package/dist/collection/index.js +3 -3
  36. package/dist/content/index.js +1 -1
  37. package/dist/{fieldMessages-DV6sESpn.js → fieldMessages-6HVzSDqG.js} +1 -1
  38. package/dist/form/ComboField.vue.d.ts +11 -8
  39. package/dist/form/CommandDialog.vue.d.ts +3 -0
  40. package/dist/form/MultiSelectField.vue.d.ts +8 -5
  41. package/dist/form/OptionList.vue.d.ts +7 -4
  42. package/dist/form/SelectField.vue.d.ts +11 -8
  43. package/dist/form/SuggestionList.vue.d.ts +11 -6
  44. package/dist/form/index.d.ts +2 -0
  45. package/dist/form/index.js +981 -928
  46. package/dist/form/options.d.ts +18 -5
  47. package/dist/form/suggestions.d.ts +12 -12
  48. package/dist/form/useOptions.d.ts +12 -12
  49. package/dist/form/useRecordDialog.d.ts +47 -0
  50. package/dist/format/index.js +1 -1
  51. package/dist/format-D8X4zsx6.js +78 -0
  52. package/dist/identity/index.js +1 -1
  53. package/dist/{index-CWeNiBX6.js → index-91Lo0hJy.js} +4 -4
  54. package/dist/{index-Bq96L43f.js → index-sYamgVg7.js} +12 -12
  55. package/dist/{index-yKIOaisE.js → index-wlRejl73.js} +5 -5
  56. package/dist/index.d.ts +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/internal/intlLocale.d.ts +2 -0
  59. package/dist/intlLocale-CeRU44qJ.js +4 -0
  60. package/dist/notifications/index.js +1 -1
  61. package/dist/overlay/index.js +1 -1
  62. package/dist/page/index.js +5 -5
  63. package/dist/phone/index.js +112 -111
  64. package/dist/resource/index.js +1 -1
  65. package/dist/{rowLayout-D1cYQghV.js → rowLayout-BFz4Kdoy.js} +2 -2
  66. package/dist/shell/index.js +1 -1
  67. package/dist/{status-DzmySsWw.js → status-B_IMA25a.js} +1 -1
  68. package/dist/{suggestions-BxMm6MQA.js → suggestions-DHJFKB26.js} +50 -50
  69. package/dist/testing/index.js +1 -1
  70. package/dist/{useCommand-B-N6HJOz.js → useCommand-YN9EMb7s.js} +41 -38
  71. package/dist/{useTypedEntry-aTfPBAhw.js → useTypedEntry-C7k7Dyl-.js} +237 -236
  72. package/package.json +1 -1
  73. package/dist/SelectField.vue_vue_type_script_setup_true_lang-C1Flb1hA.js +0 -465
  74. package/dist/format-B8mJm946.js +0 -77
@@ -1,25 +1,26 @@
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";
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 s, createVNode as M, toDisplayString as T, normalizeStyle as xe, Fragment as ee, renderList as le, createCommentVNode as J, withModifiers as we, withDirectives as _e, vModelText as ke, mergeModels as ae, inject as Ce, shallowRef as $e, onBeforeUnmount as De, createBlock as Me, mergeProps as Te, createSlots as Se, withCtx as ie, createTextVNode as Ne, renderSlot as Ie, mergeDefaults as Pe } from "vue";
2
2
  import { useI18n as pe } from "vue-i18n";
3
- import { b as Pe } from "../controlSurface-t7OEFESJ.js";
4
- import { a as Ve, c as Oe, _ as Re, f as Be, b as Ee } from "../control-B_Nwtmag.js";
3
+ import { b as Ve } from "../controlSurface-t7OEFESJ.js";
4
+ import { a as Oe, c as Re, _ as Be, f as Ee, b as ze } from "../control-B_Nwtmag.js";
5
5
  import { _ as q } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
6
- import { _ as ie } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
7
- import { u as ze } from "../anchored-Cj4--8dT.js";
8
- import { AsYouType as L, validatePhoneNumberLength as Fe, parsePhoneNumberFromString as ve, getCountries as qe, getCountryCallingCode as Ae } from "libphonenumber-js/max";
9
- import Le from "libphonenumber-js/max/metadata";
6
+ import { _ as se } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
7
+ import { u as Fe } from "../anchored-Cj4--8dT.js";
8
+ import { i as ve } from "../intlLocale-CeRU44qJ.js";
9
+ import { AsYouType as L, validatePhoneNumberLength as qe, parsePhoneNumberFromString as he, getCountries as Ae, getCountryCallingCode as Le } from "libphonenumber-js/max";
10
+ import We from "libphonenumber-js/max/metadata";
10
11
  import { f as ue } from "../options-Ba_0uLWN.js";
11
- const ce = ["HR", "BA", "SI", "RS"], We = 15;
12
- function he(t) {
13
- return Le.country_calling_codes[t]?.[0];
12
+ const ce = ["HR", "BA", "SI", "RS"], Ke = 15;
13
+ function ye(t) {
14
+ return We.country_calling_codes[t]?.[0];
14
15
  }
15
- const W = (t) => Ae(t), de = (t) => `+${W(t)}`, te = () => qe();
16
- function Ke(t, a) {
16
+ const W = (t) => Le(t), de = (t) => `+${W(t)}`, te = () => Ae();
17
+ function Ue(t, a) {
17
18
  const o = `+${t}`;
18
19
  return new L().input(`${o}${a}`).slice(o.length).trim();
19
20
  }
20
21
  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) };
22
+ const r = o.slice(0, Math.max(0, Ke - a.length));
23
+ return r === "" ? { country: t, e164: "", text: "" } : { country: t, e164: `+${a}${r}`, text: Ue(a, r) };
23
24
  }
24
25
  function oe(t, a) {
25
26
  const o = t.trim().replace(/^00(?=\d)/, "+");
@@ -28,57 +29,57 @@ function oe(t, a) {
28
29
  l.input(o);
29
30
  const x = l.getCallingCode();
30
31
  if (!x) return { country: a, e164: "", text: o.replace(/[^\d+]/g, "") };
31
- const p = l.getCountry() ?? (W(a) === x ? a : he(x) ?? a);
32
+ const p = l.getCountry() ?? (W(a) === x ? a : ye(x) ?? a);
32
33
  return re(p, x, l.getNumber()?.nationalNumber ?? "");
33
34
  }
34
35
  const r = new L(a);
35
36
  return r.input(o.replace(/\D/g, "")), re(a, W(a), r.getNumber()?.nationalNumber ?? "");
36
37
  }
37
- function Ue(t, a) {
38
+ function je(t, a) {
38
39
  return re(a, W(a), t.text.replace(/\D/g, ""));
39
40
  }
40
- function je(t) {
41
+ function He(t) {
41
42
  return t.startsWith("+") ? new L().input(t) : t;
42
43
  }
43
- const He = { MOBILE: "mobile", FIXED_LINE: "landline", TOLL_FREE: "toll_free", PREMIUM_RATE: "premium_rate", VOIP: "voip" };
44
- function Ge(t) {
45
- const a = t ? ve(t) : void 0, o = a?.isValid() ? a.getType() : void 0;
46
- return o ? He[o] : void 0;
47
- }
44
+ const Ge = { MOBILE: "mobile", FIXED_LINE: "landline", TOLL_FREE: "toll_free", PREMIUM_RATE: "premium_rate", VOIP: "voip" };
48
45
  function Xe(t) {
46
+ const a = t ? he(t) : void 0, o = a?.isValid() ? a.getType() : void 0;
47
+ return o ? Ge[o] : void 0;
48
+ }
49
+ function Ye(t) {
49
50
  const a = new L();
50
51
  a.input(t);
51
52
  const o = a.getCallingCode();
52
- return a.getCountry() ?? (o ? he(o) : void 0);
53
+ return a.getCountry() ?? (o ? ye(o) : void 0);
53
54
  }
54
- function ye(t) {
55
+ function be(t) {
55
56
  if (t === "") return null;
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 };
57
+ const a = Ye(t), o = qe(t);
58
+ return o === "TOO_SHORT" ? { kind: "too_short", country: a } : o === "TOO_LONG" ? { kind: "too_long", country: a } : o !== void 0 ? { kind: "invalid", country: a } : he(t)?.isValid() ? null : { kind: "invalid", country: a };
58
59
  }
59
- const $t = (t) => ye(t) === null;
60
- function be(t, a) {
60
+ const Mt = (t) => be(t) === null;
61
+ function ge(t, a) {
61
62
  try {
62
- return new Intl.DisplayNames([a], { type: "region" }).of(t) ?? t;
63
+ return new Intl.DisplayNames([ve(a)], { type: "region" }).of(t) ?? t;
63
64
  } catch {
64
65
  return t;
65
66
  }
66
67
  }
67
- function Ye(t, a, o) {
68
+ function Je(t, a, o) {
68
69
  const r = ue(t.trim());
69
70
  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
+ const l = r.replace(/\D/g, ""), x = new Intl.DisplayNames([ve(a)], { type: "region" }), p = (h) => ue(x.of(h) ?? h), _ = r.startsWith("+") || /^\d+$/.test(r);
71
72
  return o.filter((h) => _ ? W(h).startsWith(l) : p(h).includes(r) || h.toLowerCase() === r);
72
73
  }
73
- const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tabular-nums" }, Ze = ["id", "aria-label"], et = {
74
+ const Qe = ["id", "disabled", "aria-label", "aria-expanded"], Ze = { class: "tabular-nums" }, et = ["id", "aria-label"], tt = {
74
75
  key: 0,
75
76
  role: "presentation",
76
77
  class: "px-2 pb-1 pt-1.5 text-caption font-semibold uppercase text-content-disabled"
77
- }, tt = ["id", "aria-selected", "data-country", "onMouseenter", "onClick"], ot = { class: "shrink-0 tabular-nums text-content-muted" }, nt = {
78
+ }, ot = ["id", "aria-selected", "data-country", "onMouseenter", "onClick"], nt = { class: "shrink-0 tabular-nums text-content-muted" }, at = {
78
79
  key: 0,
79
80
  class: "px-3 py-2 text-footnote text-content-muted",
80
81
  role: "status"
81
- }, at = { class: "border-t border-border-separator px-3 py-2" }, rt = ["aria-controls", "aria-activedescendant", "aria-label", "placeholder"], lt = /* @__PURE__ */ fe({
82
+ }, rt = { class: "border-t border-border-separator px-3 py-2" }, lt = ["aria-controls", "aria-activedescendant", "aria-label", "placeholder"], it = /* @__PURE__ */ fe({
82
83
  __name: "CountryPicker",
83
84
  props: /* @__PURE__ */ ae({
84
85
  id: {},
@@ -93,23 +94,23 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
93
94
  setup(t, { expose: a, emit: o }) {
94
95
  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
96
  const e = /* @__PURE__ */ new Map();
96
- for (const s of te()) e.set(s, be(s, _.value));
97
+ for (const i of te()) e.set(i, ge(i, _.value));
97
98
  return e;
98
99
  }), S = (e) => O.value.get(e) ?? e, D = g(() => {
99
100
  const e = r.common.filter((c) => O.value.has(c));
100
101
  if (v.value.trim() !== "") {
101
- const c = Ye(v.value, _.value, te());
102
+ const c = Je(v.value, _.value, te());
102
103
  return [{ title: null, countries: [...c.filter((n) => e.includes(n)), ...c.filter((n) => !e.includes(n))] }];
103
104
  }
104
- const s = te().filter((c) => !e.includes(c)).sort((c, n) => S(c).localeCompare(S(n), _.value));
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) => `${r.id}-country-${e}`, { style: Q } = ze(k, {
105
+ const i = te().filter((c) => !e.includes(c)).sort((c, n) => S(c).localeCompare(S(n), _.value));
106
+ return [{ title: p("core.form.phone.common"), countries: e }, { title: p("core.form.phone.all"), countries: i }].filter((c) => c.countries.length > 0);
107
+ }), y = g(() => D.value.flatMap((e) => e.countries)), z = g(() => D.value.map((e, i) => D.value.slice(0, i).reduce((c, n) => c + n.countries.length, 0))), U = (e) => `${r.id}-country-${e}`, { style: Q } = Fe(k, {
107
108
  reference: () => V.value,
108
109
  placement: () => "bottom-start",
109
110
  offset: 4,
110
111
  padding: 8,
111
- fit: (e, s) => {
112
- e.style.width = "min(20rem, calc(100vw - 1rem))", e.style.maxHeight = `${Math.max(200, Math.min(380, s.height))}px`;
112
+ fit: (e, i) => {
113
+ e.style.width = "min(20rem, calc(100vw - 1rem))", e.style.maxHeight = `${Math.max(200, Math.min(380, i.height))}px`;
113
114
  }
114
115
  });
115
116
  async function j() {
@@ -132,14 +133,14 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
132
133
  e.preventDefault(), d.value = Math.min(Math.max(d.value + (e.key === "ArrowDown" ? 1 : -1), 0), y.value.length - 1);
133
134
  else if (e.key === "Enter") {
134
135
  e.preventDefault();
135
- const s = y.value[d.value];
136
- s && R(s);
136
+ const i = y.value[d.value];
137
+ i && R(i);
137
138
  }
138
139
  }
139
140
  function B(e) {
140
141
  (e.key === "ArrowDown" || e.key === "ArrowUp") && (e.preventDefault(), j());
141
142
  }
142
- return a({ focus: () => V.value?.focus() }), (e, s) => (w(), $("div", {
143
+ return a({ focus: () => V.value?.focus() }), (e, i) => (w(), $("div", {
143
144
  ref_key: "root",
144
145
  ref: h,
145
146
  class: "shrink-0",
@@ -151,40 +152,40 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
151
152
  ref: V,
152
153
  type: "button",
153
154
  disabled: r.disabled,
154
- "aria-label": i(p)("core.form.phone.country", { country: S(l.value) }),
155
+ "aria-label": s(p)("core.form.phone.country", { country: S(l.value) }),
155
156
  "aria-haspopup": "listbox",
156
157
  "aria-expanded": C.value,
157
158
  "data-test": "country-button",
158
159
  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
- onClick: s[0] || (s[0] = (c) => C.value ? N(!0) : j()),
160
+ onClick: i[0] || (i[0] = (c) => C.value ? N(!0) : j()),
160
161
  onKeydown: B
161
162
  }, [
162
- M(ie, { country: l.value }, null, 8, ["country"]),
163
- f("span", Qe, T(i(de)(l.value)), 1),
164
- M(i(q), {
163
+ M(se, { country: l.value }, null, 8, ["country"]),
164
+ f("span", Ze, T(s(de)(l.value)), 1),
165
+ M(s(q), {
165
166
  name: "arrowDownSLine",
166
167
  size: 14,
167
168
  class: "text-content-muted"
168
169
  })
169
- ], 42, Je),
170
+ ], 42, Qe),
170
171
  C.value ? (w(), $("div", {
171
172
  key: 0,
172
173
  ref_key: "panel",
173
174
  ref: k,
174
- style: ge(i(Q)),
175
+ style: xe(s(Q)),
175
176
  "data-test": "country-list",
176
177
  class: "z-1000 flex flex-col overflow-hidden rounded-menu bg-surface-overlay shadow-float"
177
178
  }, [
178
179
  f("div", {
179
180
  id: `${r.id}-countries`,
180
181
  role: "listbox",
181
- "aria-label": i(p)("core.form.phone.countries"),
182
+ "aria-label": s(p)("core.form.phone.countries"),
182
183
  class: "min-h-0 flex-1 overflow-y-auto p-2"
183
184
  }, [
184
185
  (w(!0), $(ee, null, le(D.value, (c, n) => (w(), $(ee, {
185
186
  key: c.title ?? "found"
186
187
  }, [
187
- c.title ? (w(), $("p", et, T(c.title), 1)) : J("", !0),
188
+ c.title ? (w(), $("p", tt, T(c.title), 1)) : J("", !0),
188
189
  (w(!0), $(ee, null, le(c.countries, (u, b) => (w(), $("div", {
189
190
  id: U(u),
190
191
  key: u,
@@ -193,25 +194,25 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
193
194
  "data-test": "country-option",
194
195
  "data-country": u,
195
196
  class: P(["flex cursor-pointer items-center gap-2.5 rounded-control px-2 py-2 text-body", (z.value[n] ?? 0) + b === d.value ? "bg-tint-soft" : "hover:bg-fill"]),
196
- onMousedown: s[1] || (s[1] = xe(() => {
197
+ onMousedown: i[1] || (i[1] = we(() => {
197
198
  }, ["prevent"])),
198
199
  onMouseenter: (m) => d.value = (z.value[n] ?? 0) + b,
199
200
  onClick: (m) => R(u)
200
201
  }, [
201
- M(ie, { country: u }, null, 8, ["country"]),
202
+ M(se, { country: u }, null, 8, ["country"]),
202
203
  f("span", {
203
204
  class: P(["min-w-0 flex-1 truncate text-content-strong", u === l.value ? "font-semibold" : ""])
204
205
  }, T(S(u)), 3),
205
- f("span", ot, T(i(de)(u)), 1)
206
- ], 42, tt))), 128))
206
+ f("span", nt, T(s(de)(u)), 1)
207
+ ], 42, ot))), 128))
207
208
  ], 64))), 128)),
208
- y.value.length === 0 ? (w(), $("p", nt, T(i(p)("core.form.phone.no_match")), 1)) : J("", !0)
209
- ], 8, Ze),
210
- f("div", at, [
211
- we(f("input", {
209
+ y.value.length === 0 ? (w(), $("p", at, T(s(p)("core.form.phone.no_match")), 1)) : J("", !0)
210
+ ], 8, et),
211
+ f("div", rt, [
212
+ _e(f("input", {
212
213
  ref_key: "search",
213
214
  ref: K,
214
- "onUpdate:modelValue": s[2] || (s[2] = (c) => v.value = c),
215
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => v.value = c),
215
216
  type: "text",
216
217
  role: "combobox",
217
218
  autocomplete: "off",
@@ -219,28 +220,28 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
219
220
  "aria-expanded": "true",
220
221
  "aria-controls": `${r.id}-countries`,
221
222
  "aria-activedescendant": y.value[d.value] ? U(y.value[d.value]) : void 0,
222
- "aria-label": i(p)("core.form.phone.search"),
223
- placeholder: i(p)("core.form.phone.search"),
223
+ "aria-label": s(p)("core.form.phone.search"),
224
+ placeholder: s(p)("core.form.phone.search"),
224
225
  "data-test": "country-search",
225
226
  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
227
  onKeydown: G
227
- }, null, 40, rt), [
228
- [_e, v.value]
228
+ }, null, 40, lt), [
229
+ [ke, v.value]
229
230
  ])
230
231
  ])
231
232
  ], 4)) : J("", !0)
232
233
  ], 544));
233
234
  }
234
- }), st = Symbol("vue-core.phoneDefaults"), it = { class: "w-full min-w-0" }, ut = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ct = {
235
+ }), st = Symbol("vue-core.phoneDefaults"), ut = { class: "w-full min-w-0" }, ct = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], dt = {
235
236
  key: 0,
236
237
  class: "mt-1.5 flex items-center gap-1.5 text-footnote text-status-success-content",
237
238
  "data-test": "phone-kind"
238
- }, dt = ["href", "aria-label", "title"], ft = ["href", "aria-label", "title"], mt = ["aria-label", "title"], pt = {
239
+ }, ft = ["href", "aria-label", "title"], mt = ["href", "aria-label", "title"], pt = ["aria-label", "title"], vt = {
239
240
  class: "sr-only",
240
241
  role: "status"
241
- }, Dt = /* @__PURE__ */ fe({
242
+ }, Tt = /* @__PURE__ */ fe({
242
243
  __name: "PhoneField",
243
- props: /* @__PURE__ */ ae(/* @__PURE__ */ Ie({
244
+ props: /* @__PURE__ */ ae(/* @__PURE__ */ Pe({
244
245
  label: {},
245
246
  labelHidden: { type: Boolean },
246
247
  hint: {},
@@ -255,13 +256,13 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
255
256
  commonCountries: {},
256
257
  placeholder: {},
257
258
  width: {}
258
- }, { ...Ee, defaultCountry: void 0, commonCountries: void 0, placeholder: void 0, width: "lg" }), {
259
+ }, { ...ze, defaultCountry: void 0, commonCountries: void 0, placeholder: void 0, width: "lg" }), {
259
260
  modelValue: { default: "" },
260
261
  modelModifiers: {}
261
262
  }),
262
263
  emits: ["update:modelValue"],
263
264
  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("");
265
+ const o = t, r = me(t, "modelValue"), { t: l, locale: x } = pe(), p = Ce(st, {}), _ = !!Oe(), h = Re("text", () => o.error || R.value ? "error" : o.disabled ? "locked" : "rest"), V = g(() => _ ? Ve(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 = $e(K.value), d = E("");
265
266
  let O = null;
266
267
  function S(n) {
267
268
  v.value = n.country, d.value = n.text;
@@ -297,41 +298,41 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
297
298
  /^(\+|00)\d/.test(u) && (n.preventDefault(), D(oe(u, v.value)), A(() => k.value?.setSelectionRange(d.value.length, d.value.length)));
298
299
  }
299
300
  function j(n) {
300
- D(Ue({ country: v.value, e164: r.value, text: d.value }, n)), A(() => k.value?.focus());
301
+ D(je({ country: v.value, e164: r.value, text: d.value }, n)), A(() => k.value?.focus());
301
302
  }
302
- const N = E(!1), R = g(() => N.value && r.value !== "" ? ye(r.value) : null), H = g(() => {
303
+ const N = E(!1), R = g(() => N.value && r.value !== "" ? be(r.value) : null), H = g(() => {
303
304
  const n = R.value;
304
305
  if (n)
305
- return n.country ? l(`core.form.phone.${n.kind}`, { country: be(n.country, x.value) }) : l("core.form.phone.invalid_any");
306
- }), G = g(() => r.value !== "" && !R.value ? Ge(r.value) : void 0), B = g(() => je(r.value)), e = E(!1);
307
- let s = null;
306
+ return n.country ? l(`core.form.phone.${n.kind}`, { country: ge(n.country, x.value) }) : l("core.form.phone.invalid_any");
307
+ }), G = g(() => r.value !== "" && !R.value ? Xe(r.value) : void 0), B = g(() => He(r.value)), e = E(!1);
308
+ let i = null;
308
309
  async function c() {
309
310
  try {
310
311
  await navigator.clipboard.writeText(B.value);
311
312
  } catch {
312
313
  return;
313
314
  }
314
- e.value = !0, s && clearTimeout(s), s = setTimeout(() => e.value = !1, 1800);
315
+ e.value = !0, i && clearTimeout(i), i = setTimeout(() => e.value = !1, 1800);
315
316
  }
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
+ return De(() => i && clearTimeout(i)), a({ focus: () => k.value?.focus() }), (n, u) => (w(), Me(Be, Te({ ...s(Ee)(o), error: o.error ?? H.value }, {
317
318
  value: r.value === "" ? null : B.value,
318
319
  "value-style": "numeric"
319
- }), Te({
320
- default: se(({ id: b, describedby: m, invalid: I }) => [
321
- f("div", it, [
320
+ }), Se({
321
+ default: ie(({ id: b, describedby: m, invalid: I }) => [
322
+ f("div", ut, [
322
323
  f("div", {
323
324
  class: P(["flex items-stretch gap-1.5", V.value])
324
325
  }, [
325
- M(lt, {
326
+ M(it, {
326
327
  id: b,
327
328
  "model-value": v.value,
328
329
  common: C.value,
329
330
  disabled: o.disabled,
330
- surface: `${i(h)} px-2.5`,
331
+ surface: `${s(h)} px-2.5`,
331
332
  onPicked: j
332
333
  }, null, 8, ["id", "model-value", "common", "disabled", "surface"]),
333
334
  f("div", {
334
- class: P(["min-w-0 flex-1", i(h)])
335
+ class: P(["min-w-0 flex-1", s(h)])
335
336
  }, [
336
337
  f("input", {
337
338
  id: b,
@@ -353,16 +354,16 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
353
354
  onInput: U,
354
355
  onPaste: Q,
355
356
  onBlur: u[0] || (u[0] = (X) => N.value = !0)
356
- }, null, 40, ut)
357
+ }, null, 40, ct)
357
358
  ], 2)
358
359
  ], 2),
359
- G.value && !(o.error ?? H.value) ? (w(), $("p", ct, [
360
- M(i(q), {
360
+ G.value && !(o.error ?? H.value) ? (w(), $("p", dt, [
361
+ M(s(q), {
361
362
  name: "checkCustom",
362
363
  size: 14,
363
364
  class: "shrink-0"
364
365
  }),
365
- Se(" " + T(i(l)(`core.form.phone.kind_${G.value}`)), 1)
366
+ Ne(" " + T(s(l)(`core.form.phone.kind_${G.value}`)), 1)
366
367
  ])) : J("", !0)
367
368
  ])
368
369
  ]),
@@ -370,7 +371,7 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
370
371
  }, [
371
372
  r.value !== "" ? {
372
373
  name: "readonly",
373
- fn: se(() => [
374
+ fn: ie(() => [
374
375
  f("div", {
375
376
  class: P(["flex w-full min-w-0 flex-wrap items-center gap-x-2 gap-y-1.5", _ ? "justify-end" : ""]),
376
377
  "data-test": "phone-read"
@@ -380,46 +381,46 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
380
381
  }, T(B.value), 3),
381
382
  f("a", {
382
383
  href: `tel:${r.value}`,
383
- "aria-label": i(l)("core.form.phone.call"),
384
- title: i(l)("core.form.phone.call"),
384
+ "aria-label": s(l)("core.form.phone.call"),
385
+ title: s(l)("core.form.phone.call"),
385
386
  "data-test": "phone-call",
386
387
  class: "flex size-9 shrink-0 items-center justify-center rounded-full bg-tint-soft text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus"
387
388
  }, [
388
- M(i(q), {
389
+ M(s(q), {
389
390
  name: "phone",
390
391
  size: 18
391
392
  })
392
- ], 8, dt),
393
+ ], 8, ft),
393
394
  f("a", {
394
395
  href: `sms:${r.value}`,
395
- "aria-label": i(l)("core.form.phone.message"),
396
- title: i(l)("core.form.phone.message"),
396
+ "aria-label": s(l)("core.form.phone.message"),
397
+ title: s(l)("core.form.phone.message"),
397
398
  "data-test": "phone-message",
398
399
  class: "flex size-9 shrink-0 items-center justify-center rounded-full bg-tint-soft text-content-link transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus"
399
400
  }, [
400
- M(i(q), {
401
+ M(s(q), {
401
402
  name: "message",
402
403
  size: 18
403
404
  })
404
- ], 8, ft),
405
- Ne(n.$slots, "actions", {
405
+ ], 8, mt),
406
+ Ie(n.$slots, "actions", {
406
407
  number: r.value,
407
408
  formatted: B.value
408
409
  }),
409
410
  f("button", {
410
411
  type: "button",
411
- "aria-label": i(l)("core.form.phone.copy"),
412
- title: i(l)("core.form.phone.copy"),
412
+ "aria-label": s(l)("core.form.phone.copy"),
413
+ title: s(l)("core.form.phone.copy"),
413
414
  "data-test": "phone-copy",
414
415
  class: "flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full bg-fill text-content-strong transition-colors duration-motion-fast hover:bg-fill-strong focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
415
416
  onClick: c
416
417
  }, [
417
- M(i(q), {
418
+ M(s(q), {
418
419
  name: e.value ? "checkCustom" : "copy",
419
420
  size: 18
420
421
  }, null, 8, ["name"])
421
- ], 8, mt),
422
- f("span", pt, T(e.value ? i(l)("core.form.phone.copied") : ""), 1)
422
+ ], 8, pt),
423
+ f("span", vt, T(e.value ? s(l)("core.form.phone.copied") : ""), 1)
423
424
  ], 2)
424
425
  ]),
425
426
  key: "0"
@@ -429,13 +430,13 @@ const Je = ["id", "disabled", "aria-label", "aria-expanded"], Qe = { class: "tab
429
430
  });
430
431
  export {
431
432
  ce as COMMON_COUNTRIES,
432
- Dt as PhoneField,
433
- be as countryName,
433
+ Tt as PhoneField,
434
+ ge as countryName,
434
435
  de as dialCode,
435
- je as formatInternational,
436
- $t as isValidPhone,
437
- Xe as phoneCountry,
436
+ He as formatInternational,
437
+ Mt as isValidPhone,
438
+ Ye as phoneCountry,
438
439
  st as phoneDefaultsKey,
439
- Ge as phoneKind,
440
- ye as phoneProblem
440
+ Xe as phoneKind,
441
+ be as phoneProblem
441
442
  };
@@ -1,5 +1,5 @@
1
1
  import { p as o, u as r, a, b as u } from "../routeResource-DlTsGTg_.js";
2
- import { _ as R, a as c } from "../ResourcePage.vue_vue_type_script_setup_true_lang-Da0M-hen.js";
2
+ import { _ as R, a as c } from "../ResourcePage.vue_vue_type_script_setup_true_lang-BpLnmA6n.js";
3
3
  export {
4
4
  R as RecordPager,
5
5
  c as ResourcePage,
@@ -6,9 +6,9 @@ import { _ as J } from "./Icon.vue_vue_type_script_lang-D7oC-d-S.js";
6
6
  import { _ as Ne } from "./Menu.vue_vue_type_script_setup_true_lang-uPmxWvds.js";
7
7
  import { _ as ze } from "./Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
8
8
  import { _ as he } from "./EmptyState.vue_vue_type_script_setup_true_lang-50p-Mp8I.js";
9
- import { u as Fe } from "./format-B8mJm946.js";
9
+ import { u as Fe } from "./format-D8X4zsx6.js";
10
10
  import { _ as Ve } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
11
- import { _ as Oe } from "./Timestamp.vue_vue_type_script_setup_true_lang-FVRUr-9y.js";
11
+ import { _ as Oe } from "./Timestamp.vue_vue_type_script_setup_true_lang-CU2Y5oYl.js";
12
12
  import { a as je } from "./mediaQuery-CygcXmFW.js";
13
13
  function Ue(y, n) {
14
14
  const d = (n ?? "").split(/\s+/).filter((v) => v !== "");
@@ -2,7 +2,7 @@ import { defineComponent as z, provide as Q, computed as C, ref as N, useId as r
2
2
  import { useI18n as B } from "vue-i18n";
3
3
  import { _ as we } from "../Avatar.vue_vue_type_script_setup_true_lang-CFIheaSr.js";
4
4
  import { _ as P, u as Xe, c as Ue } from "../Icon.vue_vue_type_script_lang-D7oC-d-S.js";
5
- import { _ as We } from "../Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js";
5
+ import { _ as We } from "../Popover.vue_vue_type_script_setup_true_lang-BTOzgIQF.js";
6
6
  import { u as xe, S as X } from "../contributions-DsfmDoRD.js";
7
7
  import { u as Ye } from "../environment-Dva-SG8D.js";
8
8
  import { _ as He } from "../CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js";
@@ -1,5 +1,5 @@
1
1
  import { a, r as o } from "./http-D_D9YbLH.js";
2
- import { i as r } from "./index-Bq96L43f.js";
2
+ import { i as r } from "./index-sYamgVg7.js";
3
3
  const n = ["active", "locked", "inactive", "all"];
4
4
  function l(i) {
5
5
  return a({