@wssto2/vue-core 0.15.3 → 0.17.0

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 (153) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/README.md +4 -3
  3. package/bin/architecture/engine.mjs +3 -0
  4. package/bin/architecture/permissions.mjs +56 -0
  5. package/bin/architecture/rules.mjs +17 -0
  6. package/bin/commands/check-architecture.mjs +19 -0
  7. package/bin/config.mjs +2 -0
  8. package/dist/{AccessGate.vue_vue_type_script_setup_true_lang-BH3f0hda.js → AccessGate.vue_vue_type_script_setup_true_lang-Bg8JFAOT.js} +1 -1
  9. package/dist/{ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js → ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js} +4 -4
  10. package/dist/{Activity-DM9t5d3D.js → Activity-CiYn5E6A.js} +7 -7
  11. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-uO4EAmBb.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js} +170 -168
  12. package/dist/{Changes-DYpysvfX.js → Changes-Cy8STpLX.js} +3 -3
  13. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-qxeSTAKV.js → CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js} +6 -6
  14. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-DbRS37n3.js → DataTable.vue_vue_type_script_setup_true_lang-D372wlxR.js} +1 -1
  15. package/dist/{DateField.vue_vue_type_script_setup_true_lang-DzCvYHAf.js → DateField.vue_vue_type_script_setup_true_lang-D0KcfW8R.js} +17 -16
  16. package/dist/{DeadLetters-vt9vhJD7.js → DeadLetters-DhJkMpd_.js} +4 -4
  17. package/dist/{FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js → FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js} +2 -2
  18. package/dist/FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js +160 -0
  19. package/dist/{FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js → FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js} +5 -5
  20. package/dist/{General-oUI2MiwO.js → General-CwTPC5UP.js} +11 -11
  21. package/dist/{IncidentRecord-CQdv_bN5.js → IncidentRecord-hXEGuLGg.js} +14 -14
  22. package/dist/{IncidentsList-DwQ0wuM8.js → IncidentsList-C41VyDwK.js} +6 -6
  23. package/dist/{NewRolePage-C-wbA-uW.js → NewRolePage-BYYZJkK7.js} +3 -3
  24. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-U-_kcnGr.js → NumberField.vue_vue_type_script_setup_true_lang-BhNZgEW6.js} +7 -6
  25. package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-BPDh9s2m.js → PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js} +56 -56
  26. package/dist/{ProfilePage-Di77M2cX.js → ProfilePage-DGEsIycR.js} +13 -13
  27. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-CZtvUH5L.js → RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js} +1 -1
  28. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-uLrX13ab.js → ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js} +1 -1
  29. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-V2D7fhR9.js → RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js} +10 -10
  30. package/dist/{RolePage-Crp71rRb.js → RolePage-C08ZUqw1.js} +9 -9
  31. package/dist/{RolesPage-DKXXnnDV.js → RolesPage-FOuY1VKg.js} +10 -10
  32. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-5ogQCj8M.js → SectionNavigator.vue_vue_type_script_setup_true_lang-DCTFxfPB.js} +2 -2
  33. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js → SegmentedField.vue_vue_type_script_setup_true_lang-CLR6EvzO.js} +13 -12
  34. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js → SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js} +10 -9
  35. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C7WKxJ9i.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-CDr4WNIb.js} +9 -9
  36. package/dist/{ServiceAccountRecord-CTU10RWy.js → ServiceAccountRecord-kWwIQGZb.js} +12 -12
  37. package/dist/{ServiceAccountsList-BVRjoswH.js → ServiceAccountsList-CKy9_YHP.js} +8 -8
  38. package/dist/{Sessions-BHwMrF7c.js → Sessions-BDc8gdYH.js} +4 -4
  39. package/dist/{SettingsPage-lRWvsMYK.js → SettingsPage-t-8kmFVT.js} +13 -13
  40. package/dist/{SignIn-HnujOMRY.js → SignIn-CqtkvtCZ.js} +7 -7
  41. package/dist/{SignInPage-c886Fvd7.js → SignInPage-DcdNKZIb.js} +4 -4
  42. package/dist/{SignIns-BsTlN2Zc.js → SignIns-D4-nGu0B.js} +3 -3
  43. package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js → SwitchField.vue_vue_type_script_setup_true_lang-CLtcuofe.js} +15 -14
  44. package/dist/{TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js → TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js} +7 -6
  45. package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js → TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js} +6 -5
  46. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-C1mLvOkc.js → TimeField.vue_vue_type_script_setup_true_lang-DHNC_MLt.js} +30 -29
  47. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-jCXYFLtq.js → Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js} +1 -1
  48. package/dist/{UserRecord-DrbpVHh9.js → UserRecord-CwZCr9Im.js} +10 -10
  49. package/dist/{UsersList-M5tBxrox.js → UsersList-Cn19sFgv.js} +4 -4
  50. package/dist/access/index.js +4 -4
  51. package/dist/app/application.d.ts +2 -0
  52. package/dist/app/index.js +2 -2
  53. package/dist/app/validate.d.ts +3 -1
  54. package/dist/{application-C900Wz0A.js → application-CDSweJb9.js} +144 -142
  55. package/dist/back-LcLlFodC.js +63 -0
  56. package/dist/{chrome-nUcmVu8G.js → chrome-kMBKIB1N.js} +2 -2
  57. package/dist/collection/authors.d.ts +27 -0
  58. package/dist/collection/index.d.ts +2 -0
  59. package/dist/collection/index.js +81 -76
  60. package/dist/config/index.d.ts +42 -0
  61. package/dist/config/index.js +12 -3
  62. package/dist/content/Panel.vue.d.ts +1 -1
  63. package/dist/content/index.js +2 -2
  64. package/dist/{contributions-9CPT-Z5v.js → contributions-B0x5x5xD.js} +1 -1
  65. package/dist/form/CommandDialog.vue.d.ts +1 -1
  66. package/dist/form/DateField.vue.d.ts +1 -1
  67. package/dist/form/DateTimeField.vue.d.ts +1 -1
  68. package/dist/form/FileField.vue.d.ts +1 -1
  69. package/dist/form/FormRow.vue.d.ts +2 -2
  70. package/dist/form/I18nField.vue.d.ts +2 -2
  71. package/dist/form/TextField.vue.d.ts +1 -1
  72. package/dist/form/TextareaField.vue.d.ts +2 -2
  73. package/dist/form/date/value.d.ts +21 -0
  74. package/dist/form/index.d.ts +1 -0
  75. package/dist/form/index.js +745 -715
  76. package/dist/format/format.d.ts +8 -2
  77. package/dist/format/index.js +1 -1
  78. package/dist/format-C_HXlOYQ.js +136 -0
  79. package/dist/{guards-6fJxfUtk.js → guards-CNJ0ATVC.js} +1 -1
  80. package/dist/i18n/index.d.ts +14 -2
  81. package/dist/i18n/index.js +84 -73
  82. package/dist/i18n/messages.d.ts +10 -1
  83. package/dist/i18n/runtime.d.ts +3 -1
  84. package/dist/identity/index.js +3 -3
  85. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +2 -2
  86. package/dist/identity/users/list.d.ts +1 -1
  87. package/dist/incidents/index.js +1 -1
  88. package/dist/{index-_hDHxrt5.js → index-1HS7O2-e.js} +9 -9
  89. package/dist/{index-DM_nWOYf.js → index-BA2w8uwD.js} +86 -86
  90. package/dist/{index-vES_D5ls.js → index-SLJWm40T.js} +4 -4
  91. package/dist/index.d.ts +1 -1
  92. package/dist/index.js +1 -1
  93. package/dist/modal/DiscardChangesModal.vue.d.ts +2 -2
  94. package/dist/modal/Modal.vue.d.ts +2 -2
  95. package/dist/modal/Sheet.vue.d.ts +2 -2
  96. package/dist/modules/identity/routes.d.ts +1 -1
  97. package/dist/modules/identity/schemas.d.ts +2 -2
  98. package/dist/{navigation-DMJ6akat.js → navigation-d-JAPBGA.js} +1 -1
  99. package/dist/{neighbors-DrEahe7B.js → neighbors-Dg_LU9ry.js} +32 -31
  100. package/dist/notifications/index.js +1 -1
  101. package/dist/onboarding/index.js +1 -1
  102. package/dist/options-mOOX6JSS.js +214 -0
  103. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  104. package/dist/overlay/Menu.vue.d.ts +2 -2
  105. package/dist/overlay/PhotoViewer.vue.d.ts +2 -2
  106. package/dist/overlay/Popover.vue.d.ts +2 -2
  107. package/dist/page/SectionNavigator.vue.d.ts +1 -1
  108. package/dist/page/SectionPanel.vue.d.ts +1 -1
  109. package/dist/page/back.d.ts +37 -0
  110. package/dist/page/index.d.ts +1 -0
  111. package/dist/page/index.js +46 -42
  112. package/dist/phone/index.js +57 -56
  113. package/dist/platform/index.d.ts +10 -1
  114. package/dist/platform/index.js +16 -15
  115. package/dist/platform/platform.d.ts +4 -2
  116. package/dist/{platform-ORzRR3Tw.js → platform-DU9QFts8.js} +7 -6
  117. package/dist/playwright/config.d.ts +33 -0
  118. package/dist/playwright/index.d.ts +2 -0
  119. package/dist/playwright/index.js +192 -171
  120. package/dist/resource/index.js +1 -1
  121. package/dist/router/index.js +3 -3
  122. package/dist/router/sections.d.ts +1 -1
  123. package/dist/{rowLayout-QKfNHsML.js → rowLayout-PIuD7MGo.js} +2 -2
  124. package/dist/sections-BpiRLntE.js +54 -0
  125. package/dist/{serverMessages-Ce8-MK4e.js → serverMessages-C_KkDvpT.js} +1 -1
  126. package/dist/shell/index.js +5 -5
  127. package/dist/state/NextStepPanel.vue.d.ts +63 -0
  128. package/dist/state/PhaseTiles.vue.d.ts +20 -0
  129. package/dist/state/PhaseTrack.vue.d.ts +48 -0
  130. package/dist/state/RequirementList.vue.d.ts +10 -0
  131. package/dist/state/TodoRow.vue.d.ts +52 -0
  132. package/dist/state/index.d.ts +9 -0
  133. package/dist/state/index.js +731 -126
  134. package/dist/state/phaseStep.d.ts +7 -0
  135. package/dist/state/phaseTile.d.ts +10 -0
  136. package/dist/state/requirementItem.d.ts +16 -0
  137. package/dist/state/todoRow.d.ts +8 -0
  138. package/dist/{state-QDaxntgR.js → state-z1iPF1DT.js} +1 -1
  139. package/dist/styles.css +1 -1
  140. package/dist/{suggestions-q_v3M7G6.js → suggestions-DeMgs_ki.js} +1 -1
  141. package/dist/testing/format.d.ts +1 -1
  142. package/dist/testing/index.js +31 -31
  143. package/dist/{useCommand-DAMgQ5NE.js → useCommand-DQKvro1n.js} +2 -2
  144. package/dist/{useGroupSheet-B-Hs4gNO.js → useGroupSheet-CRw3MUmX.js} +3 -3
  145. package/dist/{usePreferences-BfMXVbSO.js → usePreferences-DB29UTFD.js} +1 -1
  146. package/dist/{useRecordDialog-QPKFH1Ww.js → useRecordDialog-0azHxxvm.js} +1 -1
  147. package/dist/{useResourceForm-Oa6bk3NI.js → useResourceForm-zVuWerSn.js} +1 -1
  148. package/dist/{useSaveChrome-7huA3FzR.js → useSaveChrome-DB9OwIjT.js} +1 -1
  149. package/dist/{useTypedEntry-CITij2C_.js → useTypedEntry-BsMV66Yc.js} +46 -45
  150. package/package.json +1 -1
  151. package/dist/format-Cp1h0vsC.js +0 -125
  152. package/dist/options-B48UiYsG.js +0 -368
  153. package/dist/sections-DI_JhgQG.js +0 -53
@@ -1,12 +1,13 @@
1
1
  import { computed as p, defineComponent as re, useModel as oe, useTemplateRef as T, openBlock as g, createBlock as Y, mergeProps as E, unref as s, createSlots as ae, withCtx as y, createElementBlock as C, Fragment as H, createVNode as D, createTextVNode as ne, toDisplayString as K, createCommentVNode as M, createElementVNode as O, normalizeClass as le, renderSlot as S, mergeModels as G, mergeDefaults as se, nextTick as J } from "vue";
2
2
  import { useI18n as L } from "vue-i18n";
3
3
  import { _ as ie } from "./DateButton.vue_vue_type_script_setup_true_lang-CovKG5lN.js";
4
- import { u as W } from "./format-Cp1h0vsC.js";
4
+ import { u as W } from "./format-C_HXlOYQ.js";
5
5
  import { _ as de } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
6
6
  import { u as ue } from "./mediaQuery-CygcXmFW.js";
7
7
  import { _ as ce } from "./Popover.vue_vue_type_script_setup_true_lang-BK8HL_V0.js";
8
- import { e as me, _ as fe, f as pe, b as be } from "./options-B48UiYsG.js";
9
- import { e as q, f as j, m as X, g as Z, h as ve, j as ye, u as ke, k as ge, _ as he, l as xe, c as we } from "./useTypedEntry-CITij2C_.js";
8
+ import { u as me, _ as fe } from "./options-mOOX6JSS.js";
9
+ import { e as q, f as j, m as X, g as Z, h as pe, j as be, u as ve, k as ye, _ as ke, l as ge, c as he } from "./useTypedEntry-BsMV66Yc.js";
10
+ import { f as xe, b as we } from "./FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js";
10
11
  const _e = ["d", "m", "y"];
11
12
  function $e(o) {
12
13
  const r = o("2033-11-22"), t = { y: r.indexOf("2033") >= 0 ? r.indexOf("2033") : r.indexOf("33"), m: r.indexOf("11"), d: r.indexOf("22") };
@@ -53,7 +54,7 @@ function Te(o, r) {
53
54
  function F(o, r) {
54
55
  return Object.fromEntries(o.map((t, e) => [t, r[e]]));
55
56
  }
56
- function Qe(o) {
57
+ function Ye(o) {
57
58
  const r = o.trim().replace(/^(\d{4}-\d{2}-\d{2})T/, "$1 ").split(/\s+/).filter(Boolean), t = r[r.length - 1];
58
59
  if (t === void 0) return { date: null, time: null };
59
60
  if (!(t.includes(":") || r.length > 1 && /^\d{1,2}\.\d{2}$/.test(t))) return { date: r.join(" "), time: null };
@@ -83,8 +84,8 @@ function qe(o, r, t) {
83
84
  const { t: e } = L();
84
85
  return p(() => {
85
86
  const a = q();
86
- return (o() ?? ve(r())).map((u) => {
87
- const i = ye(u, (n) => e(`core.form.date.${n.replace(/-/g, "_")}`), a);
87
+ return (o() ?? pe(r())).map((u) => {
88
+ const i = be(u, (n) => e(`core.form.date.${n.replace(/-/g, "_")}`), a);
88
89
  return { ...i, disabled: Z(i.value, t()) };
89
90
  });
90
91
  });
@@ -92,7 +93,7 @@ function qe(o, r, t) {
92
93
  const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], Ve = ["aria-label", "onClick"], Be = { class: "flex flex-col gap-2.5" }, Ee = {
93
94
  key: 0,
94
95
  class: "border-t border-border-separator pt-2.5"
95
- }, Me = { class: "text-footnote text-content-muted" }, Ye = /* @__PURE__ */ re({
96
+ }, Me = { class: "text-footnote text-content-muted" }, He = /* @__PURE__ */ re({
96
97
  __name: "DateField",
97
98
  props: /* @__PURE__ */ G(/* @__PURE__ */ se({
98
99
  label: {},
@@ -110,20 +111,20 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
110
111
  disabledDates: { type: [Array, Function] },
111
112
  openOn: {},
112
113
  quickPicks: {}
113
- }, { ...be, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, quickPicks: void 0 }), {
114
+ }, { ...we, min: void 0, max: void 0, disabledDates: void 0, openOn: void 0, quickPicks: void 0 }), {
114
115
  modelValue: { default: null },
115
116
  modelModifiers: {}
116
117
  }),
117
118
  emits: /* @__PURE__ */ G(["focus", "blur"], ["update:modelValue"]),
118
119
  setup(o, { expose: r, emit: t }) {
119
- const e = o, a = oe(o, "modelValue"), u = t, { t: i } = L(), n = W(), x = ue(), c = T("input"), m = T("popover"), w = T("calendar"), N = T("sheet"), k = p(() => ({ min: e.min, max: e.max, disabled: e.disabledDates })), b = Oe(() => k.value), f = ke({
120
+ const e = o, a = oe(o, "modelValue"), u = t, { t: i } = L(), n = W(), x = ue(), c = T("input"), m = T("popover"), w = T("calendar"), N = T("sheet"), k = p(() => ({ min: e.min, max: e.max, disabled: e.disabledDates })), b = Oe(() => k.value), f = ve({
120
121
  model: a,
121
122
  display: (l) => n.date(l),
122
123
  parse: (l) => {
123
124
  const d = b.parse(l);
124
125
  return d ? b.available(d) ? { value: d } : { error: b.unavailableMessage() } : { error: b.invalidMessage() };
125
126
  }
126
- }), P = qe(() => e.quickPicks, () => x.value, () => k.value), z = p(() => e.error || f.message.value), V = p(() => a.value ? n.date(a.value) : null), ee = me("date", () => z.value ? "error" : e.disabled ? "locked" : "rest"), U = p(() => f.typed.value ?? (ge(a.value) ? a.value : null));
127
+ }), P = qe(() => e.quickPicks, () => x.value, () => k.value), z = p(() => e.error || f.message.value), V = p(() => a.value ? n.date(a.value) : null), ee = me("date", () => z.value ? "error" : e.disabled ? "locked" : "rest"), U = p(() => f.typed.value ?? (ye(a.value) ? a.value : null));
127
128
  async function B(l) {
128
129
  e.disabled || (m.value?.present(), l && (await J(), await J(), w.value?.focus()));
129
130
  }
@@ -133,7 +134,7 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
133
134
  function R(l, d) {
134
135
  f.set(l), d();
135
136
  }
136
- return r({ focus: () => c.value?.focus() }), (l, d) => (g(), Y(fe, E({ ...s(pe)(e), error: z.value }, {
137
+ return r({ focus: () => c.value?.focus() }), (l, d) => (g(), Y(fe, E({ ...s(xe)(e), error: z.value }, {
137
138
  value: V.value,
138
139
  "value-style": "numeric"
139
140
  }), ae({
@@ -152,7 +153,7 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
152
153
  ]),
153
154
  _: 1
154
155
  }, 16, ["disabled", "invalid", "placeholder"]),
155
- D(he, {
156
+ D(ke, {
156
157
  ref_key: "sheet",
157
158
  ref: N,
158
159
  title: e.label ?? s(i)("core.form.date.calendar"),
@@ -223,7 +224,7 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
223
224
  ]),
224
225
  default: y(({ dismiss: _ }) => [
225
226
  O("div", Be, [
226
- D(xe, {
227
+ D(ge, {
227
228
  ref_key: "calendar",
228
229
  ref: w,
229
230
  "model-value": U.value,
@@ -235,7 +236,7 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
235
236
  "onUpdate:modelValue": ($) => R($, _)
236
237
  }, null, 8, ["model-value", "min", "max", "disabled-dates", "open-on", "onUpdate:modelValue"]),
237
238
  s(P).length > 0 ? (g(), C("div", Ee, [
238
- D(we, {
239
+ D(he, {
239
240
  items: s(P),
240
241
  selected: U.value,
241
242
  onPick: ($) => R($, _)
@@ -274,8 +275,8 @@ const Pe = ["id", "name", "value", "placeholder", "disabled", "required", "aria-
274
275
  }
275
276
  });
276
277
  export {
277
- Ye as _,
278
+ He as _,
278
279
  qe as a,
279
- Qe as s,
280
+ Ye as s,
280
281
  Oe as u
281
282
  };
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as B, useTemplateRef as C, computed as y, ref as v, openBlock as D, createBlock as z, unref as r, withCtx as m, createVNode as F, createElementVNode as b, normalizeClass as $, toDisplayString as h } from "vue";
2
2
  import { useI18n as q } from "vue-i18n";
3
3
  import { a as k } from "./error-CD7x0Jrz.js";
4
- import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-qxeSTAKV.js";
4
+ import { u as V, _ as N } from "./CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js";
5
5
  import { u as P } from "./describeError-B-NMa--w.js";
6
- import { u as I } from "./format-Cp1h0vsC.js";
7
- import { e as a, R as O } from "./index-vES_D5ls.js";
6
+ import { u as I } from "./format-C_HXlOYQ.js";
7
+ import { e as a, R as O } from "./index-SLJWm40T.js";
8
8
  import { _ as W } from "./AlertDialog.vue_vue_type_script_setup_true_lang-WuGvAOrj.js";
9
9
  import { t as i } from "./toast-CqSDTWRX.js";
10
10
  import { u as Y } from "./useLoad-M7V-AVwR.js";
11
- import { u as j } from "./platform-ORzRR3Tw.js";
11
+ import { u as j } from "./platform-DU9QFts8.js";
12
12
  import { d as G, r as H } from "./http-D6qOS6xs.js";
13
13
  function J(u) {
14
14
  return G({
@@ -4,11 +4,11 @@ var z = (o, e, t) => de(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { shallowRef as N, computed as v, toRaw as fe, reactive as me, ref as V, watch as pe, nextTick as ve, toValue as ge, defineComponent as J, unref as $, openBlock as g, createBlock as Q, withCtx as ne, createElementBlock as k, toDisplayString as j, createCommentVNode as y, Fragment as W, createElementVNode as R, normalizeClass as P, renderList as he, createTextVNode as D, inject as le, provide as H, useSlots as ye, shallowReactive as re, useTemplateRef as be, useId as ke, normalizeStyle as _e, renderSlot as I } from "vue";
5
5
  import { useI18n as X } from "vue-i18n";
6
6
  import { i as we, a as L } from "./error-CD7x0Jrz.js";
7
- import { f as je } from "./serverMessages-Ce8-MK4e.js";
7
+ import { f as je } from "./serverMessages-C_KkDvpT.js";
8
8
  import { d as Ee, u as Oe, a as xe } from "./describeError-B-NMa--w.js";
9
9
  import { _ as $e } from "./Banner.vue_vue_type_script_setup_true_lang-sv0phngk.js";
10
10
  import { s as Ae, u as Fe } from "./sectionIndex-BS0ic5W7.js";
11
- import { d as se, i as Be } from "./options-B48UiYsG.js";
11
+ import { c as se, d as Be } from "./FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js";
12
12
  import { _ as De } from "./Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js";
13
13
  class Se {
14
14
  constructor() {
@@ -0,0 +1,160 @@
1
+ import { inject as k, ref as I, computed as l, onBeforeUnmount as S, defineComponent as B, useSlots as R, openBlock as a, createBlock as y, resolveDynamicComponent as h, unref as g, normalizeClass as n, withCtx as w, createElementBlock as i, renderSlot as c, createCommentVNode as r, createElementVNode as m, createTextVNode as x, toDisplayString as f, createVNode as H } from "vue";
2
+ import { RouterLink as N } from "vue-router";
3
+ import { _ } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
4
+ import { u as j } from "./mediaQuery-CygcXmFW.js";
5
+ const X = {
6
+ label: void 0,
7
+ labelHidden: !1,
8
+ hint: void 0,
9
+ error: void 0,
10
+ required: !1,
11
+ editable: !0,
12
+ disabled: !1,
13
+ lockedReason: void 0,
14
+ presentation: "control",
15
+ name: void 0
16
+ }, V = Symbol("vue-core.formGroup"), $ = Symbol("vue-core.formRowIndent"), D = Symbol("vue-core.formEditable"), F = () => k(V, null), O = () => k($, 0);
17
+ function Z(t) {
18
+ const e = F(), s = k(D, I(!0)), b = j(), p = l(() => !!e && !!t.disabled && (b.value || t.presentation === "value")), u = l(() => (t.editable ?? !0) && s.value && !p.value), v = l(() => !!e && !!t.disabled && u.value);
19
+ if (e) {
20
+ const o = e.registerLocked(l(() => !!t.disabled && s.value && t.presentation !== "value"));
21
+ S(o);
22
+ }
23
+ return { editable: u, locked: v };
24
+ }
25
+ const q = ["label", "labelHidden", "hint", "error", "required", "editable", "disabled", "lockedReason", "presentation", "name"];
26
+ function ee(t) {
27
+ return Object.fromEntries(q.map((e) => [e, t[e]]));
28
+ }
29
+ const A = {
30
+ key: 0,
31
+ class: "flex shrink-0 items-center"
32
+ }, K = { class: "row-body min-h-row min-w-0 flex-1 border-t border-border-separator py-2 pr-row-inset" }, z = {
33
+ key: 0,
34
+ class: "text-content-destructive",
35
+ "aria-hidden": "true"
36
+ }, G = ["id"], T = ["data-stacked"], M = {
37
+ key: 0,
38
+ class: "break-words text-body text-content-strong"
39
+ }, P = ["id"], te = /* @__PURE__ */ B({
40
+ __name: "FormRow",
41
+ props: {
42
+ label: { default: void 0 },
43
+ labelHidden: { type: Boolean, default: !1 },
44
+ for: { default: void 0 },
45
+ sub: { default: void 0 },
46
+ subId: { default: void 0 },
47
+ required: { type: Boolean, default: !1 },
48
+ layout: { default: "entry" },
49
+ value: { default: void 0 },
50
+ to: { default: void 0 },
51
+ error: { default: void 0 },
52
+ errorId: { default: void 0 },
53
+ indent: { default: 0 },
54
+ labelLines: { default: void 0 },
55
+ labelAlign: { default: "center" },
56
+ stackOnCompact: { type: Boolean, default: !1 }
57
+ },
58
+ setup(t) {
59
+ const e = t, s = R(), b = O(), p = l(() => b + e.indent), u = ["pl-row-inset", "pl-[calc(var(--app-row-inset)+1.25rem)]", "pl-[calc(var(--app-row-inset)+2.5rem)]"], v = { 1: "line-clamp-1", 2: "line-clamp-2", 3: "line-clamp-3" }, o = l(() => e.labelHidden && (e.layout === "entry" || e.layout === "value") ? "stacked" : e.layout), C = l(() => {
60
+ switch (o.value) {
61
+ case "entry":
62
+ return "grid grid-cols-[var(--form-label-width,11rem)_minmax(0,1fr)] items-center gap-x-4 compact:grid-cols-[minmax(0,auto)_minmax(40%,1fr)]";
63
+ case "value":
64
+ return "grid grid-cols-[minmax(min-content,1fr)_minmax(0,auto)] items-center gap-x-4";
65
+ case "setting":
66
+ return e.stackOnCompact ? "flex items-center gap-4 compact:flex-col compact:items-stretch compact:gap-1" : "flex items-center gap-4";
67
+ default:
68
+ return "flex flex-col gap-1";
69
+ }
70
+ }), E = l(() => e.labelHidden ? "sr-only" : o.value === "stacked" ? "text-footnote text-content-muted" : e.layout === "value" ? "text-body text-content-muted" : "text-body text-content-strong"), L = l(() => e.value !== void 0 && e.value !== null && e.value !== "");
71
+ return (d, U) => (a(), y(h(e.to ? g(N) : "div"), {
72
+ to: e.to,
73
+ "data-test": "form-row",
74
+ "data-layout": o.value,
75
+ "data-field-error": e.error ? "true" : void 0,
76
+ class: n(["form-row flex min-w-0 items-stretch gap-3 transition-colors duration-motion-fast first:rounded-t-group last:rounded-b-group focus-within:bg-tint-soft/50 [&:first-child>.row-body]:border-t-0", [u[Math.min(p.value, 2)], e.to ? "hover:bg-fill focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus" : ""]])
77
+ }, {
78
+ default: w(() => [
79
+ s.leading ? (a(), i("div", A, [
80
+ c(d.$slots, "leading")
81
+ ])) : r("", !0),
82
+ m("div", K, [
83
+ m("div", {
84
+ class: n(["min-w-0", C.value])
85
+ }, [
86
+ e.label || e.sub || s.sub ? (a(), i("div", {
87
+ key: 0,
88
+ class: n([e.labelHidden && !e.sub && !s.sub ? "contents" : o.value === "setting" ? "min-w-min flex-1" : "min-w-0", e.labelAlign === "top" ? "self-start pt-1" : ""])
89
+ }, [
90
+ m("div", {
91
+ class: n(s["label-trailing"] ? "flex items-center justify-between gap-3" : "")
92
+ }, [
93
+ (a(), y(h(e.for ? "label" : "span"), {
94
+ for: e.for,
95
+ class: n(["break-words", [E.value, e.labelHidden ? "" : e.labelLines ? v[e.labelLines] : "block"]])
96
+ }, {
97
+ default: w(() => [
98
+ x(f(e.label), 1),
99
+ e.required ? (a(), i("span", z, " *")) : r("", !0)
100
+ ]),
101
+ _: 1
102
+ }, 8, ["for", "class"])),
103
+ c(d.$slots, "label-trailing")
104
+ ], 2),
105
+ e.sub || s.sub ? (a(), i("small", {
106
+ key: 0,
107
+ id: e.subId,
108
+ class: "mt-0.5 block text-footnote text-content-muted"
109
+ }, [
110
+ c(d.$slots, "sub", {}, () => [
111
+ x(f(e.sub), 1)
112
+ ])
113
+ ], 8, G)) : r("", !0)
114
+ ], 2)) : r("", !0),
115
+ m("div", {
116
+ class: n(["flex min-w-0 items-center gap-2", o.value === "value" ? "justify-end text-right" : o.value === "setting" ? ["flex-wrap justify-end text-right", e.stackOnCompact ? "compact:flex-col compact:items-start compact:text-left" : ""] : o.value === "entry" ? "compact:justify-end" : ""]),
117
+ "data-stacked": o.value === "setting" && e.stackOnCompact ? "compact" : void 0
118
+ }, [
119
+ c(d.$slots, "default", {}, () => [
120
+ L.value ? (a(), i("span", M, f(e.value), 1)) : r("", !0)
121
+ ]),
122
+ c(d.$slots, "trailing"),
123
+ e.to ? (a(), y(g(_), {
124
+ key: 0,
125
+ name: "arrowRightSLine",
126
+ size: 18,
127
+ class: "shrink-0 text-content-disabled"
128
+ })) : r("", !0)
129
+ ], 10, T)
130
+ ], 2),
131
+ e.error ? (a(), i("p", {
132
+ key: 0,
133
+ id: e.errorId,
134
+ class: "mt-1 flex items-start gap-1.5 text-footnote text-content-destructive",
135
+ role: "alert"
136
+ }, [
137
+ H(g(_), {
138
+ name: "alertTriangle",
139
+ size: 14,
140
+ class: "mt-px shrink-0"
141
+ }),
142
+ x(" " + f(e.error), 1)
143
+ ], 8, P)) : r("", !0)
144
+ ])
145
+ ]),
146
+ _: 3
147
+ }, 8, ["to", "data-layout", "data-field-error", "class"]));
148
+ }
149
+ });
150
+ export {
151
+ te as _,
152
+ F as a,
153
+ X as b,
154
+ D as c,
155
+ V as d,
156
+ $ as e,
157
+ ee as f,
158
+ O as g,
159
+ Z as u
160
+ };
@@ -1,6 +1,6 @@
1
- import { defineComponent as n, provide as f, computed as s, useTemplateRef as u, openBlock as t, createElementBlock as p, withModifiers as c, createBlock as d, createCommentVNode as b, renderSlot as _ } from "vue";
2
- import { d as v } from "./options-B48UiYsG.js";
3
- import { _ as k } from "./FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js";
1
+ import { defineComponent as n, provide as f, computed as s, useTemplateRef as u, openBlock as t, createElementBlock as c, withModifiers as p, createBlock as d, createCommentVNode as b, renderSlot as _ } from "vue";
2
+ import { c as v } from "./FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js";
3
+ import { _ as k } from "./FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js";
4
4
  const x = /* @__PURE__ */ n({
5
5
  __name: "FormView",
6
6
  props: {
@@ -16,12 +16,12 @@ const x = /* @__PURE__ */ n({
16
16
  function m() {
17
17
  e.form?.submitting.value || !e.editable || l("submit");
18
18
  }
19
- return (a, y) => (t(), p("form", {
19
+ return (a, y) => (t(), c("form", {
20
20
  ref_key: "root",
21
21
  ref: o,
22
22
  class: "flex min-w-0 flex-col gap-group-gap",
23
23
  novalidate: "",
24
- onSubmit: c(m, ["prevent"])
24
+ onSubmit: p(m, ["prevent"])
25
25
  }, [
26
26
  e.form ? (t(), d(k, {
27
27
  key: 0,
@@ -1,21 +1,21 @@
1
1
  import { defineComponent as R, computed as N, openBlock as i, createElementBlock as k, createVNode as o, unref as e, withCtx as u, mergeProps as c, createBlock as v, createCommentVNode as d, createElementVNode as p, toDisplayString as b, createTextVNode as S } from "vue";
2
2
  import { useI18n as V } from "vue-i18n";
3
3
  import { RouterLink as B } from "vue-router";
4
- import { u as E } from "./format-Cp1h0vsC.js";
5
- import { u as T } from "./useResourceForm-Oa6bk3NI.js";
6
- import { a as h } from "./FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js";
7
- import { _ as F } from "./FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js";
8
- import { _ as L } from "./SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js";
9
- import { _ as f } from "./TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
10
- import { u as A } from "./useSaveChrome-7huA3FzR.js";
4
+ import { u as E } from "./format-C_HXlOYQ.js";
5
+ import { u as T } from "./useResourceForm-zVuWerSn.js";
6
+ import { a as h } from "./FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js";
7
+ import { _ as F } from "./FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js";
8
+ import { _ as L } from "./SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js";
9
+ import { _ as f } from "./TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js";
10
+ import { u as A } from "./useSaveChrome-DB9OwIjT.js";
11
11
  import { i as D } from "./preferences-hYhrw8Uy.js";
12
12
  import { t as G } from "./toast-CqSDTWRX.js";
13
- import { u as I } from "./platform-ORzRR3Tw.js";
13
+ import { u as I } from "./platform-DU9QFts8.js";
14
14
  import { b as M } from "./routeResource-DlTsGTg_.js";
15
- import { u as O } from "./serverMessages-Ce8-MK4e.js";
16
- import { _ as U, a as $ } from "./ActionRow.vue_vue_type_script_setup_true_lang-DybAIOHS.js";
15
+ import { u as O } from "./serverMessages-C_KkDvpT.js";
16
+ import { _ as U, a as $ } from "./ActionRow.vue_vue_type_script_setup_true_lang-B5IMNnTf.js";
17
17
  import { u as j } from "./keepAlive-ClGnsIzT.js";
18
- import { P as z, e as H } from "./index-DM_nWOYf.js";
18
+ import { P as z, e as H } from "./index-BA2w8uwD.js";
19
19
  const J = {
20
20
  class: "flex min-w-0 max-w-200 flex-col gap-group-gap",
21
21
  "data-person-general": ""
@@ -2,28 +2,28 @@ import { defineComponent as G, openBlock as s, createElementBlock as m, createVN
2
2
  import { useI18n as X } from "vue-i18n";
3
3
  import { useRoute as ie } from "vue-router";
4
4
  import { _ as V } from "./Button.vue_vue_type_script_setup_true_lang-JrqhO99l.js";
5
- import { u as ae } from "./neighbors-DrEahe7B.js";
5
+ import { u as ae } from "./neighbors-Dg_LU9ry.js";
6
6
  import { _ as v } from "./KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js";
7
7
  import { _ as D } from "./Panel.vue_vue_type_script_setup_true_lang-D_Wg42hu.js";
8
8
  import { _ as le } from "./IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js";
9
9
  import { a as re } from "./leaveGuard-Cc8yeLxM.js";
10
- import { u as ce } from "./useResourceForm-Oa6bk3NI.js";
11
- import { _ as de, a as ue } from "./FormGroup.vue_vue_type_script_setup_true_lang-dsO1m9Mm.js";
12
- import { _ as _e } from "./FormView.vue_vue_type_script_setup_true_lang-Bq_Qa4py.js";
13
- import { _ as O } from "./SelectField.vue_vue_type_script_setup_true_lang-CLkoPbGm.js";
14
- import { _ as H } from "./TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js";
15
- import { _ as K } from "./TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js";
16
- import { u as me } from "./useSaveChrome-7huA3FzR.js";
17
- import { u as pe } from "./useCommand-DAMgQ5NE.js";
18
- import { u as Z } from "./format-Cp1h0vsC.js";
10
+ import { u as ce } from "./useResourceForm-zVuWerSn.js";
11
+ import { _ as de, a as ue } from "./FormGroup.vue_vue_type_script_setup_true_lang-lvAuBG-0.js";
12
+ import { _ as _e } from "./FormView.vue_vue_type_script_setup_true_lang-D01Jr4UU.js";
13
+ import { _ as O } from "./SelectField.vue_vue_type_script_setup_true_lang-D5xYofdb.js";
14
+ import { _ as H } from "./TextareaField.vue_vue_type_script_setup_true_lang-YxUlNHSk.js";
15
+ import { _ as K } from "./TextField.vue_vue_type_script_setup_true_lang-CVGh-p3J.js";
16
+ import { u as me } from "./useSaveChrome-DB9OwIjT.js";
17
+ import { u as pe } from "./useCommand-DQKvro1n.js";
18
+ import { u as Z } from "./format-C_HXlOYQ.js";
19
19
  import { t as fe } from "./toast-CqSDTWRX.js";
20
- import { _ as ve } from "./RecordHeader.vue_vue_type_script_setup_true_lang-CZtvUH5L.js";
21
- import { u as be } from "./platform-ORzRR3Tw.js";
20
+ import { _ as ve } from "./RecordHeader.vue_vue_type_script_setup_true_lang-B3BnYg1x.js";
21
+ import { u as be } from "./platform-DU9QFts8.js";
22
22
  import { a as xe } from "./routeResource-DlTsGTg_.js";
23
- import { a as he } from "./ResourcePage.vue_vue_type_script_setup_true_lang-uLrX13ab.js";
23
+ import { a as he } from "./ResourcePage.vue_vue_type_script_setup_true_lang-1iZtj3rh.js";
24
24
  import { _ as P } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
25
25
  import { _ as Q } from "./EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js";
26
- import { u as ee, i as ye, a as ge, M as ke, U as we, m as $e, f as Se, g as W, r as Te, S as Ee, e as U, c as z, d as Ie, b as Ce } from "./index-_hDHxrt5.js";
26
+ import { u as ee, i as ye, a as ge, M as ke, U as we, m as $e, f as Se, g as W, r as Te, S as Ee, e as U, c as z, d as Ie, b as Ce } from "./index-1HS7O2-e.js";
27
27
  import { _ as je } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js";
28
28
  import { u as Ne } from "./useLoad-M7V-AVwR.js";
29
29
  import { _ as Le } from "./Avatar.vue_vue_type_script_setup_true_lang-BPj_fkJR.js";
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as $, useTemplateRef as D, computed as d, openBlock as n, createBlock as m, unref as e, withCtx as i, createVNode as c, createElementBlock as p, toDisplayString as a, createElementVNode as F, createTextVNode as f, createCommentVNode as O } from "vue";
2
2
  import { useI18n as q } from "vue-i18n";
3
3
  import { useRouter as U } from "vue-router";
4
- import { u as z, _ as P } from "./CollectionPage.vue_vue_type_script_setup_true_lang-qxeSTAKV.js";
5
- import { a as y } from "./rowLayout-QKfNHsML.js";
4
+ import { u as z, _ as P } from "./CollectionPage.vue_vue_type_script_setup_true_lang-Dr6nFNBB.js";
5
+ import { a as y } from "./rowLayout-PIuD7MGo.js";
6
6
  import { u as Y } from "./datePresets-DB13HHHd.js";
7
- import { _ as j } from "./Timestamp.vue_vue_type_script_setup_true_lang-jCXYFLtq.js";
7
+ import { _ as j } from "./Timestamp.vue_vue_type_script_setup_true_lang-d_KuxWjH.js";
8
8
  import { _ as g } from "./IconTile.vue_vue_type_script_setup_true_lang-BmxCuUZ9.js";
9
- import { u as K } from "./format-Cp1h0vsC.js";
10
- import { u as G } from "./platform-ORzRR3Tw.js";
9
+ import { u as K } from "./format-C_HXlOYQ.js";
10
+ import { u as G } from "./platform-DU9QFts8.js";
11
11
  import { _ as k } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
12
- import { i as v, a as H, C as J, _ as M, S as T, b as Q, c as S, d as W, e as E } from "./index-_hDHxrt5.js";
12
+ import { i as v, a as H, C as J, _ as M, S as T, b as Q, c as S, d as W, e as E } from "./index-1HS7O2-e.js";
13
13
  const X = {
14
14
  key: 1,
15
15
  class: "flex min-w-0 items-center gap-3"
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as _, computed as d, openBlock as y, createBlock as w, unref as e, withCtx as i, createVNode as l } from "vue";
2
2
  import { useI18n as v } from "vue-i18n";
3
3
  import { useRoute as k, useRouter as R } from "vue-router";
4
- import { _ as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-uO4EAmBb.js";
4
+ import { _ as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-oXWQTfBs.js";
5
5
  import { _ as b } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CX8mpXRE.js";
6
6
  import { u as g } from "./useLoad-M7V-AVwR.js";
7
- import { u as x } from "./PersonAccess.vue_vue_type_script_setup_true_lang-BPDh9s2m.js";
8
- import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-V2D7fhR9.js";
7
+ import { u as x } from "./PersonAccess.vue_vue_type_script_setup_true_lang-mYFuG-Y3.js";
8
+ import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-BslSDDiM.js";
9
9
  import { accessPages as u } from "./access/index.js";
10
10
  const j = /* @__PURE__ */ _({
11
11
  __name: "NewRolePage",
@@ -1,7 +1,8 @@
1
1
  import { defineComponent as H, ref as _, computed as B, useTemplateRef as K, watch as R, openBlock as q, createBlock as J, mergeProps as L, unref as T, createSlots as Q, withCtx as $, createElementVNode as Z, normalizeClass as E, createElementBlock as G, toDisplayString as I, createCommentVNode as P, isRef as W, renderSlot as N, mergeDefaults as U } from "vue";
2
2
  import { b as X } from "./controlSurface-t7OEFESJ.js";
3
- import { u as Y } from "./format-Cp1h0vsC.js";
4
- import { a as ee, e as te, _ as le, f as ae, b as oe } from "./options-B48UiYsG.js";
3
+ import { u as Y } from "./format-C_HXlOYQ.js";
4
+ import { u as ee, _ as te } from "./options-mOOX6JSS.js";
5
+ import { a as le, f as ae, b as oe } from "./FormRow.vue_vue_type_script_setup_true_lang-CpgNVQF4.js";
5
6
  function ne(c) {
6
7
  const r = c.number(1234.5, { minimumFractionDigits: 1, maximumFractionDigits: 1, useGrouping: !0 }), u = /^\d(\D)\d/.exec(r)?.[1] ?? "";
7
8
  return { decimal: r.charAt(r.length - 2) || ".", group: u === "." || u === "," ? u : "" };
@@ -26,7 +27,7 @@ const se = {
26
27
  }, re = ["id", "value", "name", "placeholder", "disabled", "required", "aria-required", "aria-invalid", "aria-describedby"], ue = {
27
28
  key: 1,
28
29
  class: "shrink-0 text-footnote text-content-muted"
29
- }, pe = /* @__PURE__ */ H({
30
+ }, ge = /* @__PURE__ */ H({
30
31
  __name: "NumberField",
31
32
  props: /* @__PURE__ */ U({
32
33
  label: {},
@@ -58,7 +59,7 @@ const se = {
58
59
  function x(t) {
59
60
  p.value = t, m("update:modelValue", t);
60
61
  }
61
- const g = Y(), v = K("input"), i = !!ee(), h = te("text", () => e.error ? "error" : e.disabled ? "locked" : "rest"), y = B(() => i ? X(e.width) : "w-full"), f = B(() => ne(g)), k = B(() => Math.min(e.minDecimals ?? e.decimals, e.decimals)), b = (t) => t === null || e.blankZero && t === 0, d = (t) => b(t) ? "" : g.number(t, { minimumFractionDigits: k.value, maximumFractionDigits: e.decimals, useGrouping: e.grouping }), C = (t) => b(t) ? "" : String(t).replace(".", f.value.decimal), M = (t) => ie(t, { decimals: e.decimals, group: e.grouping ? f.value.group : "" }), D = _(!1), o = _(d(n.value));
62
+ const g = Y(), v = K("input"), i = !!le(), h = ee("text", () => e.error ? "error" : e.disabled ? "locked" : "rest"), y = B(() => i ? X(e.width) : "w-full"), f = B(() => ne(g)), k = B(() => Math.min(e.minDecimals ?? e.decimals, e.decimals)), b = (t) => t === null || e.blankZero && t === 0, d = (t) => b(t) ? "" : g.number(t, { minimumFractionDigits: k.value, maximumFractionDigits: e.decimals, useGrouping: e.grouping }), C = (t) => b(t) ? "" : String(t).replace(".", f.value.decimal), M = (t) => ie(t, { decimals: e.decimals, group: e.grouping ? f.value.group : "" }), D = _(!1), o = _(d(n.value));
62
63
  R(n, (t) => {
63
64
  D.value ? M(o.value) !== t && (o.value = C(t)) : o.value = d(t);
64
65
  }), R(() => [e.decimals, e.blankZero, k.value, e.grouping, f.value.decimal], () => {
@@ -93,7 +94,7 @@ const se = {
93
94
  function z(t) {
94
95
  s = !1, D.value = !1, o.value = d(n.value), m("blur", t);
95
96
  }
96
- return r({ focus: () => v.value?.focus() }), (t, l) => (q(), J(le, L(T(ae)(e), {
97
+ return r({ focus: () => v.value?.focus() }), (t, l) => (q(), J(te, L(T(ae)(e), {
97
98
  value: b(n.value) ? null : d(n.value),
98
99
  prefix: e.prefix,
99
100
  suffix: e.suffix,
@@ -157,5 +158,5 @@ const se = {
157
158
  }
158
159
  });
159
160
  export {
160
- pe as _
161
+ ge as _
161
162
  };