@wssto2/vue-core 0.9.3 → 0.10.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 (162) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-IpcP3Bjc.js +87 -0
  3. package/dist/Activity-CeAG0ZtJ.js +169 -0
  4. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js} +147 -159
  5. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js → AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js} +1 -1
  6. package/dist/BottomDockPortal.vue_vue_type_script_setup_true_lang-DmwR-2SP.js +17 -0
  7. package/dist/Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js +123 -0
  8. package/dist/Changes-B9-zpDxG.js +69 -0
  9. package/dist/{CollectionPage.vue_vue_type_script_setup_true_lang-DHcekGNn.js → CollectionPage.vue_vue_type_script_setup_true_lang-Cn0YOWJF.js} +19 -18
  10. package/dist/{DataTable.vue_vue_type_script_setup_true_lang-8kBsNRuq.js → DataTable.vue_vue_type_script_setup_true_lang-BQRG8bpH.js} +1 -1
  11. package/dist/{DateField.vue_vue_type_script_setup_true_lang-BhKdCVFn.js → DateField.vue_vue_type_script_setup_true_lang-CeNwBbJT.js} +1 -1
  12. package/dist/{DeadLetters-Bb5pPlOY.js → DeadLetters-BP03yC4R.js} +5 -6
  13. package/dist/DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js +38 -0
  14. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js +427 -0
  15. package/dist/{FormView.vue_vue_type_script_setup_true_lang-aaNnMIOi.js → FormView.vue_vue_type_script_setup_true_lang-DvbPEiNQ.js} +2 -2
  16. package/dist/{General-BAG7S6wV.js → General-BDmCJr3H.js} +35 -38
  17. package/dist/{IncidentRecord-D8aOpNHo.js → IncidentRecord-DEhl6AyA.js} +14 -15
  18. package/dist/{IncidentsList-C0cFl0Db.js → IncidentsList-COgRPdk3.js} +3 -3
  19. package/dist/{Modal.vue_vue_type_script_setup_true_lang-BlHhdmMy.js → Modal.vue_vue_type_script_setup_true_lang-DDS0iEnn.js} +9 -8
  20. package/dist/{NewRolePage-C6Iu-EQJ.js → NewRolePage-DhGFwvk3.js} +4 -4
  21. package/dist/{NumberField.vue_vue_type_script_setup_true_lang-TGGAq8J-.js → NumberField.vue_vue_type_script_setup_true_lang-B3UrXNqH.js} +1 -1
  22. package/dist/{PersonAccess.vue_vue_type_script_setup_true_lang-qz1tmYpF.js → PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js} +56 -56
  23. package/dist/ProfilePage-BQCK2w8R.js +684 -0
  24. package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js +30 -0
  25. package/dist/{RecordHeader.vue_vue_type_script_setup_true_lang-B9mN7UxZ.js → RecordHeader.vue_vue_type_script_setup_true_lang-DqGc3Jyo.js} +1 -1
  26. package/dist/{ResourcePage.vue_vue_type_script_setup_true_lang-Cw8mGf_B.js → ResourcePage.vue_vue_type_script_setup_true_lang-DljhsTU4.js} +3 -3
  27. package/dist/{RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js → RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js} +11 -12
  28. package/dist/{RolePage-Dj_ocMnM.js → RolePage-DaNv049g.js} +10 -10
  29. package/dist/{RolesPage-PXrs4O-1.js → RolesPage-6hlzJes_.js} +6 -6
  30. package/dist/SearchInput.vue_vue_type_script_setup_true_lang-w4eAqyZ9.js +32 -0
  31. package/dist/{SectionList.vue_vue_type_script_setup_true_lang-CtdF1zuv.js → SectionList.vue_vue_type_script_setup_true_lang-DR0_NsqC.js} +1 -1
  32. package/dist/{SectionNavigator.vue_vue_type_script_setup_true_lang-B5ove3rM.js → SectionNavigator.vue_vue_type_script_setup_true_lang-Dh3sXUt_.js} +2 -2
  33. package/dist/{SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js → SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js} +1 -1
  34. package/dist/{SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js → SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js} +3 -3
  35. package/dist/{ServiceAccountDialog.vue_vue_type_script_setup_true_lang-aWkKwxNe.js → ServiceAccountDialog.vue_vue_type_script_setup_true_lang-C0OIBrSp.js} +20 -20
  36. package/dist/{ServiceAccountRecord-bxX9yQkC.js → ServiceAccountRecord-gtlhYaAz.js} +37 -37
  37. package/dist/{ServiceAccountsList-BXE6htxk.js → ServiceAccountsList-BM7GGcvw.js} +33 -33
  38. package/dist/{Sessions--Gvc0kxw.js → Sessions-BCDJYuV2.js} +23 -24
  39. package/dist/{SettingsPage-DzDC7gD-.js → SettingsPage-DUhMsYBf.js} +27 -30
  40. package/dist/{SignIn-CTI_699e.js → SignIn-4D7WohI8.js} +9 -10
  41. package/dist/{SignInPage-HKC1bm2E.js → SignInPage-B6B-34GG.js} +4 -4
  42. package/dist/SignIns-CFoe4hpX.js +64 -0
  43. package/dist/StatusLine.vue_vue_type_script_setup_true_lang-DsdQmLq6.js +56 -0
  44. package/dist/{SwitchField.vue_vue_type_script_setup_true_lang-BMA2YXTZ.js → SwitchField.vue_vue_type_script_setup_true_lang-Ds4q0bbl.js} +1 -1
  45. package/dist/{TextField.vue_vue_type_script_setup_true_lang-BFVsqcBX.js → TextField.vue_vue_type_script_setup_true_lang-CWIeeZRE.js} +2 -2
  46. package/dist/{TextareaField.vue_vue_type_script_setup_true_lang-Dyh4Hhyl.js → TextareaField.vue_vue_type_script_setup_true_lang-D2j4s96s.js} +1 -1
  47. package/dist/{TimeField.vue_vue_type_script_setup_true_lang-gGFfQLuK.js → TimeField.vue_vue_type_script_setup_true_lang-D-Em4glH.js} +1 -1
  48. package/dist/UserRecord-Cd1TCpJZ.js +202 -0
  49. package/dist/UsersList-GJU5-CTG.js +74 -0
  50. package/dist/access/index.js +4 -4
  51. package/dist/app/index.js +1 -1
  52. package/dist/{application-BmXW6iW_.js → application-CuzT-0vW.js} +1 -1
  53. package/dist/button/index.js +6 -5
  54. package/dist/collection/PickerModal.vue.d.ts +26 -0
  55. package/dist/collection/definition.d.ts +6 -6
  56. package/dist/collection/http.d.ts +6 -6
  57. package/dist/collection/index.d.ts +5 -1
  58. package/dist/collection/index.js +144 -85
  59. package/dist/collection/picker.d.ts +39 -0
  60. package/dist/collection/types.d.ts +9 -4
  61. package/dist/collection/useCollection.d.ts +5 -5
  62. package/dist/content/ActivityStream.vue.d.ts +62 -0
  63. package/dist/content/CommentThread.vue.d.ts +52 -0
  64. package/dist/content/Composer.vue.d.ts +36 -0
  65. package/dist/content/index.d.ts +3 -0
  66. package/dist/content/index.js +321 -56
  67. package/dist/controls/index.js +28 -54
  68. package/dist/form/index.d.ts +2 -0
  69. package/dist/form/index.js +611 -595
  70. package/dist/form/storableText.d.ts +24 -0
  71. package/dist/format/index.d.ts +1 -0
  72. package/dist/format/index.js +10 -6
  73. package/dist/format/slug.d.ts +8 -0
  74. package/dist/highlight-DnYhLXnu.js +9 -0
  75. package/dist/http-Dm0uXY9O.js +95 -0
  76. package/dist/i18n/index.d.ts +14 -0
  77. package/dist/i18n/index.js +87 -63
  78. package/dist/i18n/plural.d.ts +23 -0
  79. package/dist/identity/embed.d.ts +39 -0
  80. package/dist/identity/index.d.ts +20 -0
  81. package/dist/identity/index.js +40 -21
  82. package/dist/identity/session.d.ts +9 -1
  83. package/dist/identity/shared/ChangeFeed.vue.d.ts +6 -3
  84. package/dist/identity/users/context.d.ts +8 -0
  85. package/dist/identity/users/dialogs.d.ts +10 -0
  86. package/dist/identity/users/ext.d.ts +8 -0
  87. package/dist/identity/users/feature.d.ts +10 -0
  88. package/dist/identity/users/list.d.ts +1 -1
  89. package/dist/identity/users/personSections.d.ts +1 -1
  90. package/dist/identity/users/replace.d.ts +45 -0
  91. package/dist/identity/users/words.d.ts +28 -0
  92. package/dist/incidents/api.d.ts +1 -1
  93. package/dist/incidents/index.js +1 -1
  94. package/dist/{index-Dz0LkLM8.js → index-CTkG-acm.js} +4 -4
  95. package/dist/{index-Dm-sdJJr.js → index-DUs7WSz-.js} +31 -32
  96. package/dist/index-pJ_eRg80.js +1257 -0
  97. package/dist/index.d.ts +1 -1
  98. package/dist/index.js +1 -1
  99. package/dist/modal/index.js +3 -3
  100. package/dist/modules/identity/entities.d.ts +7 -0
  101. package/dist/modules/identity/routes.d.ts +8 -4
  102. package/dist/modules/identity/schemas.d.ts +16 -0
  103. package/dist/{neighbors-DVfU9T0o.js → neighbors-OyvGi233.js} +2 -2
  104. package/dist/notifications/deadletters/list.d.ts +1 -1
  105. package/dist/notifications/index.js +1 -1
  106. package/dist/{options-QuOkMKVZ.js → options-B48UiYsG.js} +2 -2
  107. package/dist/page/index.js +11 -11
  108. package/dist/phone/index.js +1 -1
  109. package/dist/pwa/AndroidInstallBanner.vue.d.ts +18 -0
  110. package/dist/pwa/InstallQrSheet.vue.d.ts +21 -0
  111. package/dist/pwa/IosInstallGuide.vue.d.ts +19 -0
  112. package/dist/pwa/QrCode.vue.d.ts +16 -0
  113. package/dist/pwa/index.d.ts +4 -0
  114. package/dist/pwa/index.js +244 -24
  115. package/dist/resource/index.js +1 -1
  116. package/dist/{rowLayout-CT8vWYgI.js → rowLayout-Il4psyXN.js} +183 -188
  117. package/dist/shell/DarkModeRow.vue.d.ts +15 -0
  118. package/dist/shell/OfflineNotice.vue.d.ts +2 -0
  119. package/dist/shell/QuickSearchButton.vue.d.ts +2 -0
  120. package/dist/shell/QuickSearchPalette.vue.d.ts +12 -0
  121. package/dist/shell/darkMode.d.ts +26 -0
  122. package/dist/shell/index.d.ts +10 -0
  123. package/dist/shell/index.js +963 -580
  124. package/dist/shell/offlineNotice.d.ts +3 -0
  125. package/dist/shell/quickSearch.d.ts +14 -0
  126. package/dist/shell/quickSearchControl.d.ts +66 -0
  127. package/dist/shortcut-DUR6yPWA.js +93 -0
  128. package/dist/state/BackgroundTaskCapsule.vue.d.ts +18 -0
  129. package/dist/state/backgroundTasks.d.ts +58 -0
  130. package/dist/state/index.d.ts +4 -0
  131. package/dist/state/index.js +194 -80
  132. package/dist/state/useCountUp.d.ts +9 -0
  133. package/dist/styles.css +1 -1
  134. package/dist/{suggestions-BVQhoXzS.js → suggestions-q_v3M7G6.js} +1 -1
  135. package/dist/testing/collection.d.ts +1 -1
  136. package/dist/{useCommand-Dc8Lgs9h.js → useCommand-Ch_nx1AQ.js} +4 -4
  137. package/dist/{useGroupSheet-DQ6cVG-z.js → useGroupSheet-CPjHydQV.js} +14 -15
  138. package/dist/{useRecordDialog-BTsbHY38.js → useRecordDialog-DdkauXnU.js} +1 -1
  139. package/dist/{useResourceForm-DJ4Q75pq.js → useResourceForm-Dl6YFYyz.js} +1 -1
  140. package/package.json +3 -2
  141. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-Cg1lhpcA.js +0 -45
  142. package/dist/Activity-29hsZ28j.js +0 -156
  143. package/dist/Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js +0 -192
  144. package/dist/Changes-Dxjdkd_5.js +0 -129
  145. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-CIggKPtq.js +0 -295
  146. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js +0 -137
  147. package/dist/PageBar.vue_vue_type_script_setup_true_lang-qI94fjJv.js +0 -47
  148. package/dist/ProfilePage-BnohZIEg.js +0 -764
  149. package/dist/ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js +0 -64
  150. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +0 -23
  151. package/dist/SessionList.vue_vue_type_script_setup_true_lang-Cnyt5V8T.js +0 -133
  152. package/dist/SignIns-BcqBgWgN.js +0 -121
  153. package/dist/UserRecord-CtUPpbCt.js +0 -267
  154. package/dist/UsersList-BMkIgIg8.js +0 -155
  155. package/dist/definition-C7QuyV3i.js +0 -54
  156. package/dist/fieldMessages-B6GHgi40.js +0 -25
  157. package/dist/http-nz92KjdS.js +0 -42
  158. package/dist/index-CdtofdcJ.js +0 -501
  159. package/dist/languages-BShG9LpE.js +0 -10
  160. package/dist/signInEvents-DWShrJox.js +0 -30
  161. package/dist/status-BRA14qwX.js +0 -34
  162. package/dist/useWaitStatus-fsacMl4W.js +0 -24
@@ -1,11 +1,12 @@
1
1
  import { toValue as oe, watch as ee, onUnmounted as le, computed as i, ref as j, defineComponent as ne, useSlots as q, useId as ie, inject as re, openBlock as t, createBlock as _, Teleport as de, createElementBlock as a, unref as s, createVNode as k, Transition as T, withCtx as z, normalizeStyle as V, createCommentVNode as o, normalizeClass as y, createElementVNode as n, mergeProps as G, toDisplayString as m, renderSlot as f, createTextVNode as ce } from "vue";
2
2
  import { useI18n as ue } from "vue-i18n";
3
- import { _ as J } from "./Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js";
3
+ import { _ as J } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
4
4
  import { _ as Q } from "./Icon.vue_vue_type_script_lang-BhhsFYwp.js";
5
5
  import { u as pe } from "./mediaQuery-CygcXmFW.js";
6
6
  import { u as me } from "./useDialog-DfNmqM-0.js";
7
7
  import { u as fe } from "./useSheetDrag-OsD6Eb6I.js";
8
- import { a as R, _ as Y } from "./ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js";
8
+ import { _ as R } from "./DrawnCheck.vue_vue_type_script_setup_true_lang-9DzDJlIA.js";
9
+ import { _ as Y } from "./ProgressTrack.vue_vue_type_script_setup_true_lang-DrOm8k--.js";
9
10
  import { p as ve } from "./perDocument-DUuFrdGU.js";
10
11
  const be = Symbol("vue-core.modalPlacement");
11
12
  function ye(g, l) {
@@ -59,7 +60,7 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
59
60
  key: 1,
60
61
  class: "contents",
61
62
  "data-part": "cancel"
62
- }, We = { class: "flex grow items-center" }, et = /* @__PURE__ */ ne({
63
+ }, We = { class: "flex grow items-center" }, tt = /* @__PURE__ */ ne({
63
64
  __name: "Modal",
64
65
  props: {
65
66
  title: { default: void 0 },
@@ -146,7 +147,7 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
146
147
  "data-covered": s(D) || void 0,
147
148
  style: V(s(h).panelStyle.value)
148
149
  }, [
149
- e.progress ? (t(), _(R, {
150
+ e.progress ? (t(), _(Y, {
150
151
  key: 0,
151
152
  hairline: "",
152
153
  value: e.progress.value,
@@ -186,7 +187,7 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
186
187
  "aria-busy": x.value || void 0,
187
188
  onClick: U
188
189
  }, [
189
- u.value ? (t(), _(Y, {
190
+ u.value ? (t(), _(R, {
190
191
  key: 0,
191
192
  size: 15
192
193
  })) : x.value ? (t(), _(s(Q), {
@@ -253,7 +254,7 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
253
254
  style: V(X.value.offsetX ? { transform: `translateX(${X.value.offsetX}px)` } : void 0)
254
255
  }, [
255
256
  e.progress ? (t(), a("div", Xe, [
256
- k(R, {
257
+ k(Y, {
257
258
  hairline: "",
258
259
  value: e.progress.value,
259
260
  done: e.progress.complete
@@ -308,7 +309,7 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
308
309
  onClick: U
309
310
  }, {
310
311
  default: z(() => [
311
- u.value ? (t(), _(Y, {
312
+ u.value ? (t(), _(R, {
312
313
  key: 0,
313
314
  size: 16
314
315
  })) : o("", !0),
@@ -348,6 +349,6 @@ const _e = ["aria-labelledby", "data-presentation"], ke = ["data-covered"], we =
348
349
  }
349
350
  });
350
351
  export {
351
- et as _,
352
+ tt as _,
352
353
  be as m
353
354
  };
@@ -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 { a as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-DdJOodn8.js";
5
- import { _ as b } from "./AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js";
4
+ import { _ as $ } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-D5i77H6S.js";
5
+ import { _ as b } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.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-qz1tmYpF.js";
8
- import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-CJPvOVDV.js";
7
+ import { u as x } from "./PersonAccess.vue_vue_type_script_setup_true_lang-DbGZSNQc.js";
8
+ import { _ as P } from "./RoleEditor.vue_vue_type_script_setup_true_lang-C0FIotFA.js";
9
9
  import { accessPages as u } from "./access/index.js";
10
10
  const j = /* @__PURE__ */ _({
11
11
  __name: "NewRolePage",
@@ -1,7 +1,7 @@
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
3
  import { u as Y } from "./format-D8KUBmbS.js";
4
- import { a as ee, e as te, _ as le, f as ae, b as oe } from "./options-QuOkMKVZ.js";
4
+ import { a as ee, e as te, _ as le, f as ae, b as oe } from "./options-B48UiYsG.js";
5
5
  function ne(c) {
6
6
  const r = c.number(1234.5, { minimumFractionDigits: 1, maximumFractionDigits: 1, useGrouping: !0 }), u = /^\d(\D)\d/.exec(r)?.[1] ?? "";
7
7
  return { decimal: r.charAt(r.length - 2) || ".", group: u === "." || u === "," ? u : "" };
@@ -1,18 +1,18 @@
1
- import { defineComponent as Y, ref as R, computed as j, watch as te, openBlock as i, createBlock as E, unref as e, withCtx as y, createElementVNode as A, createElementBlock as b, toDisplayString as w, createCommentVNode as D, createVNode as $, Fragment as B, renderList as G, createSlots as fe, renderSlot as ke, createTextVNode as M, useTemplateRef as le } from "vue";
1
+ import { defineComponent as Y, ref as R, computed as j, watch as te, openBlock as i, createBlock as E, unref as e, withCtx as y, createElementVNode as A, createElementBlock as _, toDisplayString as w, createCommentVNode as D, createVNode as $, Fragment as B, renderList as G, createSlots as fe, renderSlot as ke, createTextVNode as M, useTemplateRef as le } from "vue";
2
2
  import { useI18n as ee } from "vue-i18n";
3
- import { _ as I } from "./Button.vue_vue_type_script_setup_true_lang-Dp7OB-eF.js";
4
- import { _ as K } from "./FormGroup.vue_vue_type_script_setup_true_lang-B37dixvJ.js";
5
- import { g as V } from "./options-QuOkMKVZ.js";
3
+ import { _ as I } from "./Button.vue_vue_type_script_setup_true_lang-C74hcb0N.js";
4
+ import { a as K } from "./FormGroup.vue_vue_type_script_setup_true_lang-D6jYfNjW.js";
5
+ import { g as V } from "./options-B48UiYsG.js";
6
6
  import { _ as $e } from "./AlertDialog.vue_vue_type_script_setup_true_lang-CrFhR9rJ.js";
7
7
  import { t as Z } from "./toast-CqSDTWRX.js";
8
8
  import { _ as ne } from "./AccessGate.vue_vue_type_script_setup_true_lang-CzQbD2Pc.js";
9
9
  import { a as xe } from "./error-CD7x0Jrz.js";
10
- import { _ as je } from "./AsyncSection.vue_vue_type_script_setup_true_lang-BdeOKqz_.js";
10
+ import { _ as je } from "./AsyncSection.vue_vue_type_script_setup_true_lang-DGzQ-Snp.js";
11
11
  import { _ as Le } from "./EmptyState.vue_vue_type_script_setup_true_lang-DbZiO2RF.js";
12
12
  import { u as qe } from "./useLoad-M7V-AVwR.js";
13
- import { _ as Ce, a as Ee } from "./SelectField.vue_vue_type_script_setup_true_lang-BP8nAQwo.js";
14
- import { _ as Ne } from "./SegmentedField.vue_vue_type_script_setup_true_lang-ChfDFAA2.js";
15
- import { u as Te, _ as Se } from "./useCommand-Dc8Lgs9h.js";
13
+ import { _ as Ce, a as Ee } from "./SelectField.vue_vue_type_script_setup_true_lang-BZwdANL3.js";
14
+ import { _ as Ne } from "./SegmentedField.vue_vue_type_script_setup_true_lang-zv_AxpBn.js";
15
+ import { u as Te, _ as Se } from "./useCommand-Ch_nx1AQ.js";
16
16
  import { r as C } from "./route-goWMxDUN.js";
17
17
  import { s as Ae } from "./routes-Beyr5NQo.js";
18
18
  import { u as Re } from "./platform-BQOX_Ntw.js";
@@ -132,33 +132,33 @@ const ze = {
132
132
  done: (c) => {
133
133
  Z.success(a("core.access.added")), t("added", c);
134
134
  }
135
- }), n = x.form.values, m = R(null), h = R(!1), _ = R([]), p = R([]), N = R(!1), k = R(!1), q = j(() => m.value ? Me(m.value) : []), g = j(() => q.value.find((c) => c.level === n.level) ?? null), O = j(() => q.value.length > 1), se = j(() => {
135
+ }), n = x.form.values, m = R(null), h = R(!1), b = R([]), p = R([]), N = R(!1), k = R(!1), q = j(() => m.value ? Me(m.value) : []), g = j(() => q.value.find((c) => c.level === n.level) ?? null), O = j(() => q.value.length > 1), se = j(() => {
136
136
  const c = m.value, d = g.value;
137
- return c && d ? d.chain.map((r, P) => ({ name: r, places: ie(c, d, P, _.value) })) : [];
138
- }), _e = j(() => {
139
- const c = g.value?.chain.length ?? 0, d = c ? _.value[c - 1] : null;
137
+ return c && d ? d.chain.map((r, P) => ({ name: r, places: ie(c, d, P, b.value) })) : [];
138
+ }), be = j(() => {
139
+ const c = g.value?.chain.length ?? 0, d = c ? b.value[c - 1] : null;
140
140
  return m.value?.places.find((r) => r.level === g.value?.level && r.id === d)?.name ?? null;
141
- }), Q = j(() => g.value !== null && g.value.chain.every((c, d) => _.value[d] != null));
141
+ }), Q = j(() => g.value !== null && g.value.chain.every((c, d) => b.value[d] != null));
142
142
  function ae(c) {
143
- n.level = c, _.value = [], n.place = null;
143
+ n.level = c, b.value = [], n.place = null;
144
144
  }
145
145
  function oe(c, d) {
146
- const r = _.value.slice(0, c);
147
- r[c] = d, _.value = r;
146
+ const r = b.value.slice(0, c);
147
+ r[c] = d, b.value = r;
148
148
  }
149
- te([() => n.level, _, m], () => {
149
+ te([() => n.level, b, m], () => {
150
150
  const c = m.value, d = g.value;
151
151
  if (!(!c || !d)) {
152
152
  for (let r = 0; r < d.chain.length; r++) {
153
- if (_.value[r] != null) continue;
154
- const P = ie(c, d, r, _.value);
153
+ if (b.value[r] != null) continue;
154
+ const P = ie(c, d, r, b.value);
155
155
  P.length === 1 && P[0] && oe(r, P[0].id);
156
156
  break;
157
157
  }
158
- n.place = d.chain.length === 0 ? null : _.value[d.chain.length - 1] ?? null;
158
+ n.place = d.chain.length === 0 ? null : b.value[d.chain.length - 1] ?? null;
159
159
  }
160
160
  }, { deep: !0 });
161
- async function be() {
161
+ async function _e() {
162
162
  if (n.role = null, p.value = [], k.value = !1, !g.value || !Q.value) return;
163
163
  N.value = !0;
164
164
  const c = `${n.level}:${n.place}`;
@@ -171,7 +171,7 @@ const ze = {
171
171
  N.value = !1;
172
172
  }
173
173
  }
174
- te([() => n.level, () => n.place, Q], () => void be());
174
+ te([() => n.level, () => n.place, Q], () => void _e());
175
175
  const ge = j(() => p.value.map((c) => ({ value: c.ref, label: u.roleName(c), description: u.roleKind(c) }))), z = j(() => p.value.find((c) => c.ref === n.role) ?? null), he = j(() => {
176
176
  const c = /* @__PURE__ */ new Map();
177
177
  for (const d of z.value?.grants ?? []) {
@@ -179,9 +179,9 @@ const ze = {
179
179
  r && (!c.has(r) || d.permission.endsWith(":view")) && c.set(r, d.qualifier);
180
180
  }
181
181
  return [...c].map(([d, r]) => ({ ownable: d, qualifier: r }));
182
- }), ye = j(() => u.scopeLabel({ level: n.level ?? m.value?.root_level ?? "", name: _e.value }));
182
+ }), ye = j(() => u.scopeLabel({ level: n.level ?? m.value?.root_level ?? "", name: be.value }));
183
183
  async function we() {
184
- m.value = null, h.value = !1, _.value = [], p.value = [], x.present();
184
+ m.value = null, h.value = !1, b.value = [], p.value = [], x.present();
185
185
  try {
186
186
  m.value = L ? await L(f.subject, new AbortController().signal) : await v.scopes(f.subject);
187
187
  } catch {
@@ -200,7 +200,7 @@ const ze = {
200
200
  }, {
201
201
  default: y(() => [
202
202
  A("div", ze, [
203
- h.value ? (i(), b("p", He, w(e(a)("core.access.add.scopes_failed")), 1)) : m.value && q.value.length === 0 ? (i(), b("p", We, w(e(a)("core.access.add.no_places")), 1)) : D("", !0),
203
+ h.value ? (i(), _("p", He, w(e(a)("core.access.add.scopes_failed")), 1)) : m.value && q.value.length === 0 ? (i(), _("p", We, w(e(a)("core.access.add.no_places")), 1)) : D("", !0),
204
204
  O.value ? (i(), E(e(K), {
205
205
  key: 2,
206
206
  header: e(a)("core.access.add.scope_header")
@@ -212,9 +212,9 @@ const ze = {
212
212
  options: q.value.map((r) => ({ value: r.level, label: e(u).levelLabel(r.level) })),
213
213
  "onUpdate:modelValue": d[0] || (d[0] = (r) => ae(r))
214
214
  }, null, 8, ["model-value", "label", "options"]),
215
- (i(!0), b(B, null, G(se.value, (r, P) => (i(), E(e(Ce), {
215
+ (i(!0), _(B, null, G(se.value, (r, P) => (i(), E(e(Ce), {
216
216
  key: r.name,
217
- "model-value": _.value[P] ?? null,
217
+ "model-value": b.value[P] ?? null,
218
218
  label: e(u).levelLabel(r.name),
219
219
  options: r.places.map((H) => ({ value: H.id, label: H.name })),
220
220
  "onUpdate:modelValue": (H) => oe(P, H)
@@ -222,8 +222,8 @@ const ze = {
222
222
  ]),
223
223
  _: 1
224
224
  }, 8, ["header"])) : D("", !0),
225
- Q.value ? (i(), b(B, { key: 3 }, [
226
- N.value ? (i(), b("p", Ie, w(e(a)("core.access.add.roles_loading")), 1)) : k.value ? (i(), b("p", Ye, w(e(a)("core.access.add.roles_failed")), 1)) : p.value.length === 0 ? (i(), b("p", Je, w(e(a)("core.access.add.no_roles")), 1)) : (i(), b("div", Qe, [
225
+ Q.value ? (i(), _(B, { key: 3 }, [
226
+ N.value ? (i(), _("p", Ie, w(e(a)("core.access.add.roles_loading")), 1)) : k.value ? (i(), _("p", Ye, w(e(a)("core.access.add.roles_failed")), 1)) : p.value.length === 0 ? (i(), _("p", Je, w(e(a)("core.access.add.no_roles")), 1)) : (i(), _("div", Qe, [
227
227
  A("p", Xe, w(e(a)("core.access.add.role")), 1),
228
228
  $(e(Ee), {
229
229
  options: ge.value,
@@ -232,7 +232,7 @@ const ze = {
232
232
  }, null, 8, ["options", "model-value"])
233
233
  ]))
234
234
  ], 64)) : D("", !0),
235
- z.value ? (i(), b("div", Ze, [
235
+ z.value ? (i(), _("div", Ze, [
236
236
  $(e(K), {
237
237
  header: e(a)("core.access.add.role_gives"),
238
238
  footer: e(a)("core.access.add.role_gives_footer")
@@ -243,7 +243,7 @@ const ze = {
243
243
  label: e(u).roleName(z.value),
244
244
  sub: z.value.description
245
245
  }, null, 8, ["label", "sub"]),
246
- (i(!0), b(B, null, G(he.value, (r) => (i(), E(e(V), {
246
+ (i(!0), _(B, null, G(he.value, (r) => (i(), E(e(V), {
247
247
  key: r.ownable,
248
248
  layout: "setting",
249
249
  label: e(u).ownableLabel(r.ownable),
@@ -304,8 +304,8 @@ function os(l, s) {
304
304
  for (const m of t.grants) {
305
305
  const h = S ? m.qualifier : "all";
306
306
  n.scopes.some((p) => W(p) === W(m.scope)) || n.scopes.push(m.scope), S && (n.qualifier = n.qualifier ? de(n.qualifier, h) : h);
307
- const _ = n.sources.find((p) => p.roleName === m.role_name && W(p.scope) === W(m.scope));
308
- _ ? S && (n.sources[n.sources.indexOf(_)] = { ..._, qualifier: de(_.qualifier, h) }) : n.sources.push({ roleKey: m.role_key, roleName: m.role_name, qualifier: h, scope: m.scope });
307
+ const b = n.sources.find((p) => p.roleName === m.role_name && W(p.scope) === W(m.scope));
308
+ b ? S && (n.sources[n.sources.indexOf(b)] = { ...b, qualifier: de(b.qualifier, h) }) : n.sources.push({ roleKey: m.role_key, roleName: m.role_name, qualifier: h, scope: m.scope });
309
309
  }
310
310
  x.set(L, n), o.set(T, x);
311
311
  }
@@ -346,7 +346,7 @@ const ts = {
346
346
  key: 0,
347
347
  class: "contents",
348
348
  "data-test": "effective-show-all"
349
- }, _s = /* @__PURE__ */ Y({
349
+ }, bs = /* @__PURE__ */ Y({
350
350
  __name: "EffectiveAccess",
351
351
  props: {
352
352
  effective: {},
@@ -354,10 +354,10 @@ const ts = {
354
354
  },
355
355
  setup(l) {
356
356
  const s = l, { t: o } = ee(), { catalogue: f } = pe(), t = J(), a = Ge(), u = j(() => os(f, s.effective)), v = R(!1), T = j(() => a.value && !v.value ? u.value.slice(0, 3) : u.value), L = R({}), S = (m) => m.actions.map((h) => t.permissionLabel(h.permission)).join(" · "), x = (m) => m.sources.map((h) => {
357
- const _ = t.roleName({ key: h.roleKey, name: h.roleName });
358
- return m.ownable ? `${_} (${t.qualifierNoun(h.qualifier).toLowerCase()})` : _;
357
+ const b = t.roleName({ key: h.roleKey, name: h.roleName });
358
+ return m.ownable ? `${b} (${t.qualifierNoun(h.qualifier).toLowerCase()})` : b;
359
359
  }).join(", "), n = (m) => [m.qualifier ? t.qualifierNoun(m.qualifier) : "", m.scopes.map((h) => t.scopeLabel(h)).join(", ")].filter(Boolean).join(" · ");
360
- return (m, h) => (i(), b("section", ts, [
360
+ return (m, h) => (i(), _("section", ts, [
361
361
  A("h2", ls, w(e(o)("core.access.effective.title", { name: s.name })), 1),
362
362
  u.value.length === 0 ? (i(), E(e(K), {
363
363
  key: 0,
@@ -370,14 +370,14 @@ const ts = {
370
370
  }, null, 8, ["label"])
371
371
  ]),
372
372
  _: 1
373
- }, 8, ["footer"])) : (i(), b(B, { key: 1 }, [
374
- (i(!0), b(B, null, G(T.value, (_) => (i(), E(e(K), {
375
- key: _.key,
376
- header: e(t).groupLabel(_.key),
377
- footer: _ === T.value[T.value.length - 1] ? e(o)("core.access.effective.footer") : void 0
373
+ }, 8, ["footer"])) : (i(), _(B, { key: 1 }, [
374
+ (i(!0), _(B, null, G(T.value, (b) => (i(), E(e(K), {
375
+ key: b.key,
376
+ header: e(t).groupLabel(b.key),
377
+ footer: b === T.value[T.value.length - 1] ? e(o)("core.access.effective.footer") : void 0
378
378
  }, {
379
379
  default: y(() => [
380
- (i(!0), b(B, null, G(_.screens, (p) => (i(), E(e(V), {
380
+ (i(!0), _(B, null, G(b.screens, (p) => (i(), E(e(V), {
381
381
  key: p.key,
382
382
  layout: "setting",
383
383
  "stack-on-compact": "",
@@ -386,14 +386,14 @@ const ts = {
386
386
  sub: y(() => [
387
387
  A("span", ns, w(S(p)), 1),
388
388
  A("span", cs, w(e(o)("core.access.effective.from_roles", { roles: x(p) })), 1),
389
- L.value[p.key] ? (i(), b("ul", rs, [
390
- (i(!0), b(B, null, G(p.actions, (N) => (i(), b("li", {
389
+ L.value[p.key] ? (i(), _("ul", rs, [
390
+ (i(!0), _(B, null, G(p.actions, (N) => (i(), _("li", {
391
391
  key: N.permission,
392
392
  "data-permission": N.permission
393
393
  }, [
394
394
  A("span", us, w(e(t).permissionLabel(N.permission)), 1),
395
- N.unavailable ? (i(), b("span", ds, w(e(o)("core.access.effective.unavailable")), 1)) : D("", !0),
396
- (i(!0), b(B, null, G(N.grants, (k) => (i(), b("span", {
395
+ N.unavailable ? (i(), _("span", ds, w(e(o)("core.access.effective.unavailable")), 1)) : D("", !0),
396
+ (i(!0), _(B, null, G(N.grants, (k) => (i(), _("span", {
397
397
  key: `${k.binding_id}-${k.scope.level}-${k.scope.id ?? 0}`,
398
398
  class: "block text-content-muted"
399
399
  }, w(e(o)("core.access.effective.why_row", {
@@ -405,7 +405,7 @@ const ts = {
405
405
  ])) : D("", !0)
406
406
  ]),
407
407
  default: y(() => [
408
- p.allUnavailable ? (i(), b("span", ms, [
408
+ p.allUnavailable ? (i(), _("span", ms, [
409
409
  $(e(Ve), { tone: "warning" }, {
410
410
  default: y(() => [
411
411
  M(w(e(o)("core.access.effective.unavailable")), 1)
@@ -435,11 +435,11 @@ const ts = {
435
435
  ]),
436
436
  _: 2
437
437
  }, 1032, ["header", "footer"]))), 128)),
438
- e(a) && u.value.length > 3 ? (i(), b("span", vs, [
438
+ e(a) && u.value.length > 3 ? (i(), _("span", vs, [
439
439
  $(e(I), {
440
440
  prominence: "secondary",
441
441
  class: "self-center",
442
- onClick: h[0] || (h[0] = (_) => v.value = !v.value)
442
+ onClick: h[0] || (h[0] = (b) => v.value = !v.value)
443
443
  }, {
444
444
  default: y(() => [
445
445
  M(w(v.value ? e(o)("core.access.effective.fewer_modules") : e(o)("core.access.effective.all_modules", { count: u.value.length })), 1)
@@ -450,7 +450,7 @@ const ts = {
450
450
  ], 64))
451
451
  ]));
452
452
  }
453
- }), bs = {
453
+ }), _s = {
454
454
  class: "flex min-w-0 flex-col gap-group-gap",
455
455
  "data-test": "access-panel"
456
456
  }, gs = ["data-test"], hs = {
@@ -478,8 +478,8 @@ const ts = {
478
478
  async function h(k) {
479
479
  await T.unbind(f.subject, k.id), Z.success(a("core.access.removed")), await x.reload();
480
480
  }
481
- const _ = (k) => Z.error(v(k, { fallback: a("core.access.remove_failed") })), p = R(null), N = j(() => p.value ? a("core.access.remove_body", { name: f.name, role: u.roleName(p.value.role), scope: u.scopeLabel(p.value.scope) }) : "");
482
- return s({ reload: x.reload }), (k, q) => (i(), b("div", bs, [
481
+ const b = (k) => Z.error(v(k, { fallback: a("core.access.remove_failed") })), p = R(null), N = j(() => p.value ? a("core.access.remove_body", { name: f.name, role: u.roleName(p.value.role), scope: u.scopeLabel(p.value.scope) }) : "");
482
+ return s({ reload: x.reload }), (k, q) => (i(), _("div", _s, [
483
483
  S.value ? (i(), E(e(Le), {
484
484
  key: 0,
485
485
  title: e(a)("core.resource.not_found.title"),
@@ -505,7 +505,7 @@ const ts = {
505
505
  label: e(a)("core.access.no_roles_title"),
506
506
  sub: e(a)("core.access.no_roles_description")
507
507
  }, null, 8, ["label", "sub"])) : D("", !0),
508
- (i(!0), b(B, null, G(g.bindings, (O) => (i(), E(as, {
508
+ (i(!0), _(B, null, G(g.bindings, (O) => (i(), E(as, {
509
509
  key: O.id,
510
510
  binding: O
511
511
  }, fe({ _: 2 }, [
@@ -565,7 +565,7 @@ const ts = {
565
565
  ]),
566
566
  _: 2
567
567
  }, 1032, ["header", "footer"]),
568
- $(_s, {
568
+ $(bs, {
569
569
  effective: g.effective,
570
570
  name: f.name
571
571
  }, null, 8, ["effective", "name"])
@@ -587,7 +587,7 @@ const ts = {
587
587
  message: N.value,
588
588
  "confirm-label": e(a)("core.access.remove"),
589
589
  action: h,
590
- onFailed: _
590
+ onFailed: b
591
591
  }, null, 8, ["title", "message", "confirm-label"])
592
592
  ]));
593
593
  }