@wssto2/vue-core 0.1.0 → 0.3.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 (314) hide show
  1. package/README.md +53 -9
  2. package/dist/AccessGate.vue_vue_type_script_setup_true_lang-DKX3PH2n.js +22 -0
  3. package/dist/AccountMenuItem.vue_vue_type_script_setup_true_lang-DIGqTLwd.js +76 -0
  4. package/dist/ActionRow.vue_vue_type_script_setup_true_lang-B7Lpfkf6.js +45 -0
  5. package/dist/Activity-DviO0VQ8.js +156 -0
  6. package/dist/{AdaptivePageShell.vue_vue_type_script_setup_true_lang-CKghARkW.js → AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js} +48 -47
  7. package/dist/{AlertDialog.vue_vue_type_script_setup_true_lang-BZb4qKXo.js → AlertDialog.vue_vue_type_script_setup_true_lang-CJsMUIUg.js} +2 -2
  8. package/dist/{AsyncSection.vue_vue_type_script_setup_true_lang-B82bl36A.js → AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js} +4 -4
  9. package/dist/Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js +51 -0
  10. package/dist/{Banner.vue_vue_type_script_setup_true_lang-n_wGPIIu.js → Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js} +1 -1
  11. package/dist/{BottomDock.vue_vue_type_script_setup_true_lang-DhlMnPC2.js → BottomDock.vue_vue_type_script_setup_true_lang-CjN7xYEr.js} +1 -1
  12. package/dist/Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js +182 -0
  13. package/dist/Changes-DlT5mN9G.js +129 -0
  14. package/dist/CollectionPage.vue_vue_type_script_setup_true_lang-CXILftEc.js +1481 -0
  15. package/dist/CountryFlag.vue_vue_type_script_setup_true_lang-Kry_vPPZ.js +299 -0
  16. package/dist/DataTable.vue_vue_type_script_setup_true_lang-DSYgS9lC.js +52 -0
  17. package/dist/DateField.vue_vue_type_script_setup_true_lang-DMVjNsaM.js +1099 -0
  18. package/dist/{DiscardChangesModal.vue_vue_type_script_setup_true_lang-Bx5O1RZJ.js → DiscardChangesModal.vue_vue_type_script_setup_true_lang-Cb3xJI1x.js} +1 -1
  19. package/dist/{EmptyState.vue_vue_type_script_setup_true_lang-BeGpHMUP.js → EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js} +1 -1
  20. package/dist/FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js +276 -0
  21. package/dist/FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js +136 -0
  22. package/dist/FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js +38 -0
  23. package/dist/General-BD-Hcz0a.js +145 -0
  24. package/dist/{Icon.vue_vue_type_script_lang-DtC4_mkz.js → Icon.vue_vue_type_script_lang-VvcV2Bzo.js} +46 -33
  25. package/dist/{IconTile.vue_vue_type_script_setup_true_lang-Csfv6Sel.js → IconTile.vue_vue_type_script_setup_true_lang-D7QgnUyN.js} +1 -1
  26. package/dist/KeyValue.vue_vue_type_script_setup_true_lang-wcZcvnow.js +35 -0
  27. package/dist/{LeaveGuardRoot.vue_vue_type_script_setup_true_lang-DH6EB8br.js → LeaveGuardRoot.vue_vue_type_script_setup_true_lang-C2udmeEA.js} +2 -2
  28. package/dist/{Menu.vue_vue_type_script_setup_true_lang-D44EHXQZ.js → Menu.vue_vue_type_script_setup_true_lang-BNAjx9tj.js} +61 -57
  29. package/dist/{Modal.vue_vue_type_script_setup_true_lang-DYQgaUtj.js → Modal.vue_vue_type_script_setup_true_lang-D7SwVPpL.js} +139 -129
  30. package/dist/NewRolePage-Dla4YnMs.js +42 -0
  31. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-8m9cNptR.js +31 -0
  32. package/dist/NumberField.vue_vue_type_script_setup_true_lang-CYRg7Kfg.js +113 -0
  33. package/dist/OtpInput.vue_vue_type_script_setup_true_lang-gp4FfWAH.js +95 -0
  34. package/dist/PageBar.vue_vue_type_script_setup_true_lang-Cfr5xsJx.js +47 -0
  35. package/dist/{Panel.vue_vue_type_script_setup_true_lang-BQmv3cLb.js → Panel.vue_vue_type_script_setup_true_lang-BCRxRK4D.js} +1 -1
  36. package/dist/{PhotoViewer.vue_vue_type_script_setup_true_lang-DDVQXJRB.js → PhotoViewer.vue_vue_type_script_setup_true_lang-B3Q4dhqJ.js} +2 -2
  37. package/dist/Popover.vue_vue_type_script_setup_true_lang-Dx-tDhNE.js +125 -0
  38. package/dist/ProfilePage-OJMQ8cr8.js +691 -0
  39. package/dist/{ProgressTrack.vue_vue_type_script_setup_true_lang-1DDaNs2W.js → ProgressTrack.vue_vue_type_script_setup_true_lang-B6Prw9hi.js} +2 -2
  40. package/dist/RecordHeader.vue_vue_type_script_setup_true_lang-DKsaKlAq.js +64 -0
  41. package/dist/ResourcePage.vue_vue_type_script_setup_true_lang-CJcKa9SW.js +173 -0
  42. package/dist/RoleEditor.vue_vue_type_script_setup_true_lang-DuEPOmjI.js +299 -0
  43. package/dist/RolePage-bZzv_E4l.js +315 -0
  44. package/dist/RolesPage-BniZv0nB.js +115 -0
  45. package/dist/SectionIntro.vue_vue_type_script_setup_true_lang-CZtPrmXD.js +23 -0
  46. package/dist/SectionList.vue_vue_type_script_setup_true_lang-BKP_bge8.js +148 -0
  47. package/dist/SectionNavigator.vue_vue_type_script_setup_true_lang-BgGEGxSI.js +314 -0
  48. package/dist/SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js +58 -0
  49. package/dist/SelectField.vue_vue_type_script_setup_true_lang-BiGaEKBQ.js +422 -0
  50. package/dist/SessionList.vue_vue_type_script_setup_true_lang-DUQpr7gb.js +111 -0
  51. package/dist/Sessions-Co5-xdeb.js +96 -0
  52. package/dist/Sheet.vue_vue_type_script_setup_true_lang-bHYzx7-J.js +142 -0
  53. package/dist/SignIn-BWwFbxki.js +140 -0
  54. package/dist/SignInPage-FnLtoi2q.js +60 -0
  55. package/dist/SignInTable.vue_vue_type_script_setup_true_lang-Dnx3T_42.js +79 -0
  56. package/dist/SignIns-3UcI64_h.js +66 -0
  57. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-4I8m27ol.js +93 -0
  58. package/dist/Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js +155 -0
  59. package/dist/TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js +269 -0
  60. package/dist/TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js +127 -0
  61. package/dist/{Timestamp.vue_vue_type_script_setup_true_lang-CSY_mMm1.js → Timestamp.vue_vue_type_script_setup_true_lang-1RJGKxbD.js} +1 -1
  62. package/dist/{Tooltip.vue_vue_type_script_setup_true_lang-BJWPVyfT.js → Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js} +1 -1
  63. package/dist/UserRecord-Ci8HfwbX.js +267 -0
  64. package/dist/UsersList-vEJ-cgkT.js +155 -0
  65. package/dist/ViewTabs.vue_vue_type_script_setup_true_lang-ByqTU2JT.js +28 -0
  66. package/dist/access/AddRoleDialog.vue.d.ts +19 -0
  67. package/dist/access/BindingRow.vue.d.ts +19 -0
  68. package/dist/access/EffectiveAccess.vue.d.ts +12 -0
  69. package/dist/access/NewRolePage.vue.d.ts +2 -0
  70. package/dist/access/PermissionTree.vue.d.ts +13 -0
  71. package/dist/access/PersonAccess.vue.d.ts +21 -0
  72. package/dist/access/ReplaceRoleDialog.vue.d.ts +17 -0
  73. package/dist/access/RoleCompareDialog.vue.d.ts +14 -0
  74. package/dist/access/RoleEditor.vue.d.ts +28 -0
  75. package/dist/access/RolePage.vue.d.ts +2 -0
  76. package/dist/access/RolesPage.vue.d.ts +2 -0
  77. package/dist/access/api.d.ts +26 -0
  78. package/dist/access/catalogue.d.ts +64 -0
  79. package/dist/access/context.d.ts +20 -0
  80. package/dist/access/effective.d.ts +42 -0
  81. package/dist/access/feature.d.ts +27 -0
  82. package/dist/access/index.d.ts +13 -0
  83. package/dist/access/index.js +15 -0
  84. package/dist/access/labels.d.ts +35 -0
  85. package/dist/access/refusals.d.ts +6 -0
  86. package/dist/access/routes.d.ts +45 -0
  87. package/dist/access/scopes.d.ts +20 -0
  88. package/dist/app/application.d.ts +5 -0
  89. package/dist/app/contributions.d.ts +1 -1
  90. package/dist/app/environment.d.ts +2 -0
  91. package/dist/app/feature.d.ts +8 -0
  92. package/dist/app/index.js +260 -294
  93. package/dist/bottomDock-BZEiOPYZ.js +12 -0
  94. package/dist/button/Button.vue.d.ts +3 -3
  95. package/dist/button/index.d.ts +1 -1
  96. package/dist/button/index.js +5 -3
  97. package/dist/button/shortcut.d.ts +28 -2
  98. package/dist/chrome-BS3xJcad.js +93 -0
  99. package/dist/client/client.d.ts +13 -0
  100. package/dist/client/index.d.ts +3 -1
  101. package/dist/client/index.js +19 -138
  102. package/dist/client/route.d.ts +59 -0
  103. package/dist/client-Bw0aM5Gu.js +147 -0
  104. package/dist/closeOverlays-CjVsIrpL.js +8 -0
  105. package/dist/collection/CollectionPage.vue.d.ts +1 -0
  106. package/dist/collection/CollectionRows.vue.d.ts +59 -0
  107. package/dist/collection/CollectionTable.vue.d.ts +1 -1
  108. package/dist/collection/DataTable.vue.d.ts +47 -0
  109. package/dist/collection/RowActions.vue.d.ts +19 -0
  110. package/dist/collection/columns.d.ts +2 -0
  111. package/dist/collection/http.d.ts +4 -2
  112. package/dist/collection/index.d.ts +4 -2
  113. package/dist/collection/index.js +87 -2299
  114. package/dist/collection/rowLayout.d.ts +10 -0
  115. package/dist/collection/slots.d.ts +6 -3
  116. package/dist/content/index.js +37 -66
  117. package/dist/contributions-CDDg3fKp.js +26 -0
  118. package/dist/controls/DateButton.vue.d.ts +1 -1
  119. package/dist/controls/PopupButton.vue.d.ts +1 -1
  120. package/dist/controls/index.js +11 -10
  121. package/dist/defineRoutes-BGAdiIrt.js +19 -0
  122. package/dist/describeError-Ctga6GcS.js +41 -0
  123. package/dist/dialogStack-DZZg55w0.js +31 -0
  124. package/dist/environment-Dva-SG8D.js +6 -0
  125. package/dist/{error-Bb_dr_Ay.js → error-CD7x0Jrz.js} +2 -2
  126. package/dist/feature-DdUAfyi4.js +25 -0
  127. package/dist/fieldMessages-C3Rpbktw.js +25 -0
  128. package/dist/form/CheckboxField.vue.d.ts +1 -1
  129. package/dist/form/CommandDialog.vue.d.ts +13 -2
  130. package/dist/form/DateField.vue.d.ts +1 -1
  131. package/dist/form/DateTimeField.vue.d.ts +1 -1
  132. package/dist/form/EditorPage.vue.d.ts +1 -1
  133. package/dist/form/Field.vue.d.ts +1 -1
  134. package/dist/form/FileField.vue.d.ts +1 -1
  135. package/dist/form/FormGroup.vue.d.ts +1 -1
  136. package/dist/form/FormGroupButton.vue.d.ts +1 -1
  137. package/dist/form/FormRow.vue.d.ts +1 -1
  138. package/dist/form/I18nField.vue.d.ts +3 -3
  139. package/dist/form/MoneyField.vue.d.ts +1 -1
  140. package/dist/form/MonthYearField.vue.d.ts +1 -1
  141. package/dist/form/MultiSelectField.vue.d.ts +4 -1
  142. package/dist/form/NumberCell.vue.d.ts +1 -1
  143. package/dist/form/NumberField.vue.d.ts +8 -2
  144. package/dist/form/OptionList.vue.d.ts +6 -2
  145. package/dist/form/OtpInput.vue.d.ts +2 -2
  146. package/dist/form/PhotoField.vue.d.ts +1 -1
  147. package/dist/form/SelectField.vue.d.ts +4 -1
  148. package/dist/form/SwitchField.vue.d.ts +1 -1
  149. package/dist/form/TextField.vue.d.ts +3 -3
  150. package/dist/form/TextareaField.vue.d.ts +3 -3
  151. package/dist/form/TimeField.vue.d.ts +1 -1
  152. package/dist/form/date/DatePickerSheet.vue.d.ts +1 -1
  153. package/dist/form/date/MonthYearPanel.vue.d.ts +1 -1
  154. package/dist/form/index.d.ts +2 -0
  155. package/dist/form/index.js +1273 -3509
  156. package/dist/form/suggestions.d.ts +11 -0
  157. package/dist/form/useOptions.d.ts +60 -0
  158. package/dist/guards-Cd1V28oG.js +51 -0
  159. package/dist/http-DGGSKWvU.js +193 -0
  160. package/dist/i18n/describeError.d.ts +31 -0
  161. package/dist/i18n/index.d.ts +307 -0
  162. package/dist/i18n/index.js +54 -52
  163. package/dist/icon/core.d.ts +13 -0
  164. package/dist/icon/index.js +1 -1
  165. package/dist/identity/ImpersonationBanner.vue.d.ts +2 -0
  166. package/dist/identity/LocaleSync.vue.d.ts +2 -0
  167. package/dist/identity/SessionExpiry.vue.d.ts +2 -0
  168. package/dist/identity/SignInAsButton.vue.d.ts +15 -0
  169. package/dist/identity/SignInPage.vue.d.ts +2 -0
  170. package/dist/identity/context.d.ts +7 -0
  171. package/dist/identity/feature.d.ts +16 -0
  172. package/dist/identity/fieldMessages.d.ts +15 -0
  173. package/dist/identity/index.d.ts +16 -0
  174. package/dist/identity/index.js +18 -0
  175. package/dist/identity/profile/DetailsPanel.vue.d.ts +11 -0
  176. package/dist/identity/profile/EmailChangeDialog.vue.d.ts +14 -0
  177. package/dist/identity/profile/EmailPanel.vue.d.ts +11 -0
  178. package/dist/identity/profile/PanelActions.vue.d.ts +17 -0
  179. package/dist/identity/profile/PasswordPanel.vue.d.ts +2 -0
  180. package/dist/identity/profile/ProfileMenuItem.vue.d.ts +2 -0
  181. package/dist/identity/profile/ProfilePage.vue.d.ts +2 -0
  182. package/dist/identity/profile/SessionsPanel.vue.d.ts +2 -0
  183. package/dist/identity/profile/SignInsPanel.vue.d.ts +2 -0
  184. package/dist/identity/profile/VerifyCode.vue.d.ts +49 -0
  185. package/dist/identity/profile/routes.d.ts +13 -0
  186. package/dist/identity/session.d.ts +30 -0
  187. package/dist/identity/shared/ActionRow.vue.d.ts +20 -0
  188. package/dist/identity/shared/ChangeFeed.vue.d.ts +11 -0
  189. package/dist/identity/shared/PageBar.vue.d.ts +12 -0
  190. package/dist/identity/shared/SectionIntro.vue.d.ts +16 -0
  191. package/dist/identity/shared/SessionList.vue.d.ts +19 -0
  192. package/dist/{phone/CountryFlag.vue.d.ts → identity/shared/SignInTable.vue.d.ts} +5 -4
  193. package/dist/identity/shared/ViewTabs.vue.d.ts +23 -0
  194. package/dist/identity/shared/signInEvents.d.ts +9 -0
  195. package/dist/identity/signIn.d.ts +27 -0
  196. package/dist/identity/useSignInForm.d.ts +20 -0
  197. package/dist/identity/user.d.ts +6 -0
  198. package/dist/identity/users/DeactivateDialog.vue.d.ts +18 -0
  199. package/dist/identity/users/NewUserDialog.vue.d.ts +9 -0
  200. package/dist/identity/users/SetPasswordDialog.vue.d.ts +16 -0
  201. package/dist/identity/users/UserRecord.vue.d.ts +2 -0
  202. package/dist/identity/users/UsersList.vue.d.ts +2 -0
  203. package/dist/identity/users/access.d.ts +4 -0
  204. package/dist/identity/users/context.d.ts +9 -0
  205. package/dist/identity/users/feature.d.ts +34 -0
  206. package/dist/identity/users/languages.d.ts +4 -0
  207. package/dist/identity/users/list.d.ts +8 -0
  208. package/dist/identity/users/person.d.ts +26 -0
  209. package/dist/identity/users/personSections.d.ts +22 -0
  210. package/dist/identity/users/routes.d.ts +22 -0
  211. package/dist/identity/users/sections/Activity.vue.d.ts +2 -0
  212. package/dist/identity/users/sections/Changes.vue.d.ts +2 -0
  213. package/dist/identity/users/sections/General.vue.d.ts +2 -0
  214. package/dist/identity/users/sections/Sessions.vue.d.ts +2 -0
  215. package/dist/identity/users/sections/SignIn.vue.d.ts +2 -0
  216. package/dist/identity/users/sections/SignIns.vue.d.ts +2 -0
  217. package/dist/identity/users/status.d.ts +4 -0
  218. package/dist/index-B2dbYZR9.js +706 -0
  219. package/dist/index-BAcl44SC.js +459 -0
  220. package/dist/index.d.ts +1 -1
  221. package/dist/index.js +1 -1
  222. package/dist/internal/CountryFlag.vue.d.ts +10 -0
  223. package/dist/internal/languageName.d.ts +2 -0
  224. package/dist/keepAlive-WYQGRhuz.js +48 -0
  225. package/dist/languageName-CItV_SOv.js +11 -0
  226. package/dist/languages-BShG9LpE.js +10 -0
  227. package/dist/leaveGuard-Cc8yeLxM.js +72 -0
  228. package/dist/modal/Modal.vue.d.ts +4 -0
  229. package/dist/modal/ShortcutHelp.vue.d.ts +2 -0
  230. package/dist/modal/index.d.ts +2 -0
  231. package/dist/modal/index.js +64 -6
  232. package/dist/modal/placement.d.ts +22 -0
  233. package/dist/modules/access/entities.d.ts +112 -0
  234. package/dist/modules/access/routes.d.ts +67 -0
  235. package/dist/modules/access/schemas.d.ts +73 -0
  236. package/dist/modules/identity/entities.d.ts +150 -0
  237. package/dist/modules/identity/routes.d.ts +118 -0
  238. package/dist/modules/identity/schemas.d.ts +145 -0
  239. package/dist/{navigation-B33ikiCS.js → navigation-BPWa63ge.js} +21 -20
  240. package/dist/neighbors-D0WRBxXI.js +86 -0
  241. package/dist/{options-CjSz2dQK.js → options-BXkMR63B.js} +48 -49
  242. package/dist/overlay/AlertDialog.vue.d.ts +3 -3
  243. package/dist/overlay/Popover.vue.d.ts +4 -1
  244. package/dist/overlay/closeOverlays.d.ts +7 -0
  245. package/dist/overlay/dialogStack.d.ts +9 -0
  246. package/dist/overlay/index.d.ts +1 -1
  247. package/dist/overlay/index.js +20 -18
  248. package/dist/page/AdaptivePageShell.vue.d.ts +2 -2
  249. package/dist/page/ResourceHeader.vue.d.ts +2 -2
  250. package/dist/page/index.js +99 -457
  251. package/dist/phone/PhoneField.vue.d.ts +2 -2
  252. package/dist/phone/index.js +247 -540
  253. package/dist/platform/AccessGate.vue.d.ts +50 -0
  254. package/dist/platform/index.d.ts +4 -2
  255. package/dist/platform/index.js +38 -35
  256. package/dist/platform/platform.d.ts +2 -2
  257. package/dist/platform/session.d.ts +22 -1
  258. package/dist/platform-hunMqFdB.js +255 -0
  259. package/dist/resource/index.js +8 -248
  260. package/dist/routeResource-DstM0hvf.js +82 -0
  261. package/dist/router/guards.d.ts +7 -1
  262. package/dist/router/index.js +23 -37
  263. package/dist/router/navigation.d.ts +1 -1
  264. package/dist/rowLayout-BI7a3Kom.js +603 -0
  265. package/dist/sectionIndex-BS0ic5W7.js +86 -0
  266. package/dist/{sections-LtxV5Mtk.js → sections-BEqW1dOc.js} +1 -1
  267. package/dist/shell/AccountMenuItem.vue.d.ts +4 -1
  268. package/dist/shell/BackofficeShell.vue.d.ts +2 -2
  269. package/dist/shell/ShellBrand.vue.d.ts +1 -1
  270. package/dist/shell/backofficeShell.d.ts +1 -1
  271. package/dist/shell/identity.d.ts +1 -1
  272. package/dist/shell/index.js +476 -532
  273. package/dist/state/Badge.vue.d.ts +17 -10
  274. package/dist/state/ProgressTrack.vue.d.ts +1 -1
  275. package/dist/state/hue.d.ts +8 -0
  276. package/dist/state/index.d.ts +2 -0
  277. package/dist/state/index.js +34 -31
  278. package/dist/state/useLoad.d.ts +41 -0
  279. package/dist/status-C9aXR-Jb.js +33 -0
  280. package/dist/styles.css +1 -1
  281. package/dist/suggestions-BJAqOj4c.js +138 -0
  282. package/dist/testing/app.d.ts +61 -0
  283. package/dist/testing/async.d.ts +12 -0
  284. package/dist/testing/collection.d.ts +18 -0
  285. package/dist/testing/format.d.ts +9 -0
  286. package/dist/testing/i18n.d.ts +16 -0
  287. package/dist/testing/index.d.ts +14 -0
  288. package/dist/testing/index.js +178 -0
  289. package/dist/testing/media.d.ts +23 -0
  290. package/dist/testing/platform.d.ts +40 -0
  291. package/dist/testing/transport.d.ts +40 -0
  292. package/dist/toast-D9Z5To38.js +13 -0
  293. package/dist/useCommand-BgRwnYlV.js +135 -0
  294. package/dist/{useDialog-wmyNx2j_.js → useDialog-CXR3hN0G.js} +1 -1
  295. package/dist/useLoad-CYRVx6HW.js +39 -0
  296. package/dist/useResourceForm-Bgc9jMcu.js +52 -0
  297. package/dist/useSaveChrome-chi6D3HY.js +25 -0
  298. package/dist/useSheetDrag-OsD6Eb6I.js +72 -0
  299. package/package.json +26 -5
  300. package/src/styles/theme.css +60 -0
  301. package/dist/Badge.vue_vue_type_script_setup_true_lang-DKc6ugmr.js +0 -31
  302. package/dist/Button.vue_vue_type_script_setup_true_lang-3f0emVNU.js +0 -141
  303. package/dist/NoAccess.vue_vue_type_script_setup_true_lang-OKW8pKYU.js +0 -78
  304. package/dist/SectionList.vue_vue_type_script_setup_true_lang-DGcKX_OJ.js +0 -230
  305. package/dist/SelectField.vue_vue_type_script_setup_true_lang-SyFWE33A.js +0 -422
  306. package/dist/Sheet.vue_vue_type_script_setup_true_lang-BLBD5ps8.js +0 -210
  307. package/dist/SwipeActions.vue_vue_type_script_setup_true_lang-CGTuEnTv.js +0 -243
  308. package/dist/chrome-D9pwD6iS.js +0 -101
  309. package/dist/dialogStack-DiTG1rZc.js +0 -26
  310. package/dist/environment-D3nozt9a.js +0 -75
  311. package/dist/feature-DyDtyMLU.js +0 -47
  312. package/dist/platform-jqlKVJ2e.js +0 -244
  313. package/dist/toast-BTeX0r66.js +0 -129
  314. /package/dist/{phone → internal}/flagLoaders.d.ts +0 -0
@@ -59,6 +59,6 @@ const h = ["width", "height", "stroke-width"], m = {
59
59
  }
60
60
  });
61
61
  export {
62
- y as _,
63
- v as a
62
+ v as _,
63
+ y as a
64
64
  };
@@ -0,0 +1,64 @@
1
+ import { defineComponent as p, useTemplateRef as u, openBlock as t, createElementBlock as c, renderSlot as r, createCommentVNode as s, createElementVNode as n, toDisplayString as a, Fragment as d, renderList as f, createBlock as h, resolveDynamicComponent as g, withCtx as x, createVNode as _, unref as k } from "vue";
2
+ import { _ as b } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
3
+ import { u as w } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
4
+ const v = { class: "flex min-w-0 flex-wrap items-center gap-5 compact:flex-col compact:gap-2 compact:text-center" }, y = {
5
+ key: 0,
6
+ class: "min-w-0 max-w-full shrink-0"
7
+ }, C = { class: "flex min-w-0 flex-[1_1_14rem] flex-col gap-1.5 compact:w-full compact:flex-none compact:items-center compact:gap-1" }, $ = {
8
+ key: 0,
9
+ class: "flex min-w-0 flex-wrap items-center gap-2.5 text-subheadline text-content-muted compact:hidden"
10
+ }, q = {
11
+ key: 1,
12
+ class: "hidden text-subheadline text-content-muted compact:block"
13
+ }, E = {
14
+ key: 1,
15
+ class: "flex max-w-full flex-wrap gap-2 compact:mt-3 compact:grid compact:w-full compact:auto-cols-fr compact:grid-flow-col"
16
+ }, A = { class: "truncate" }, R = /* @__PURE__ */ p({
17
+ __name: "RecordHeader",
18
+ props: {
19
+ title: {},
20
+ subtitle: { default: void 0 },
21
+ quickActions: { default: () => [] }
22
+ },
23
+ setup(m) {
24
+ const o = m, i = u("titleElement");
25
+ return w(i, () => o.title), (l, B) => (t(), c("div", v, [
26
+ l.$slots.leading ? (t(), c("div", y, [
27
+ r(l.$slots, "leading")
28
+ ])) : s("", !0),
29
+ n("div", C, [
30
+ n("h1", {
31
+ ref_key: "titleElement",
32
+ ref: i,
33
+ class: "text-large-title font-semibold tracking-tight break-words text-content-strong compact:mt-1.5"
34
+ }, a(o.title), 513),
35
+ l.$slots.meta ? (t(), c("div", $, [
36
+ r(l.$slots, "meta")
37
+ ])) : s("", !0),
38
+ o.subtitle ? (t(), c("p", q, a(o.subtitle), 1)) : s("", !0)
39
+ ]),
40
+ o.quickActions.length ? (t(), c("nav", E, [
41
+ (t(!0), c(d, null, f(o.quickActions, (e) => (t(), h(g(e.href ? "a" : "button"), {
42
+ key: e.id,
43
+ href: e.href,
44
+ type: e.href ? void 0 : "button",
45
+ "data-quick-action": e.id,
46
+ class: "hit-target flex min-w-0 max-w-full cursor-pointer items-center justify-center gap-2 rounded-full bg-tint-soft px-4 py-1.5 text-subheadline font-semibold text-content-link transition duration-motion-fast hover:brightness-95 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus dark:hover:brightness-125 compact:flex-col compact:gap-1 compact:rounded-group compact:bg-surface-cell compact:px-2 compact:py-2.5 compact:text-footnote compact:font-medium compact:shadow-group",
47
+ onClick: (N) => e.onClick?.()
48
+ }, {
49
+ default: x(() => [
50
+ _(k(b), {
51
+ name: e.icon,
52
+ class: "compact:size-5.5"
53
+ }, null, 8, ["name"]),
54
+ n("span", A, a(e.label), 1)
55
+ ]),
56
+ _: 2
57
+ }, 1032, ["href", "type", "data-quick-action", "onClick"]))), 128))
58
+ ])) : s("", !0)
59
+ ]));
60
+ }
61
+ });
62
+ export {
63
+ R as _
64
+ };
@@ -0,0 +1,173 @@
1
+ import { defineComponent as S, openBlock as a, createElementBlock as v, unref as t, createBlock as c, withCtx as s, createVNode as l, normalizeClass as d, createElementVNode as R, toDisplayString as y, computed as m, createSlots as w, renderSlot as f, createCommentVNode as A } from "vue";
2
+ import { useI18n as z } from "vue-i18n";
3
+ import { a as C } from "./AdaptivePageShell.vue_vue_type_script_setup_true_lang-CvAnzdc1.js";
4
+ import { _ as B } from "./AsyncSection.vue_vue_type_script_setup_true_lang-CCtthMRd.js";
5
+ import { _ as D } from "./EmptyState.vue_vue_type_script_setup_true_lang-C2ZYIT9F.js";
6
+ import { useRouter as K, RouterLink as x } from "vue-router";
7
+ import { u as N } from "./Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
8
+ import { _ as g } from "./Icon.vue_vue_type_script_lang-VvcV2Bzo.js";
9
+ import { _ as $ } from "./Tooltip.vue_vue_type_script_setup_true_lang-OOD_XNWx.js";
10
+ const V = ["aria-label"], j = {
11
+ class: "min-w-14 px-1 text-center text-footnote tabular-nums text-content-muted compact:px-1.5",
12
+ "data-test": "pager-position",
13
+ "aria-live": "polite"
14
+ }, b = "hit-target flex size-6 items-center justify-center rounded-button 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 compact:size-9 compact:text-content-link compact:hover:bg-transparent", L = "pointer-events-none opacity-40", E = /* @__PURE__ */ S({
15
+ __name: "RecordPager",
16
+ props: {
17
+ neighbors: {}
18
+ },
19
+ setup(h) {
20
+ const e = h, { t: r } = z(), i = K(), n = (p, u) => N({ key: p, group: "record", label: () => r(`core.resource.pager.${u}`) }, () => {
21
+ const o = e.neighbors[u];
22
+ if (!o) return !1;
23
+ i.push(o);
24
+ });
25
+ return n("j", "next"), n("ArrowRight", "next"), n("k", "previous"), n("ArrowLeft", "previous"), (p, u) => (a(), v("nav", {
26
+ "aria-label": t(r)("core.resource.pager.records"),
27
+ "data-test": "record-pager",
28
+ class: "inline-flex shrink-0 items-center rounded-button bg-fill p-0.5 compact:gap-0.5 compact:bg-surface-overlay compact:p-1 compact:shadow-float"
29
+ }, [
30
+ e.neighbors.previous ? (a(), c(t($), {
31
+ key: 0,
32
+ side: "bottom",
33
+ delay: 300,
34
+ text: `${t(r)("core.resource.pager.previous")} (← / K)`
35
+ }, {
36
+ default: s(() => [
37
+ l(t(x), {
38
+ to: e.neighbors.previous,
39
+ "aria-label": t(r)("core.resource.pager.previous"),
40
+ "aria-keyshortcuts": "ArrowLeft K",
41
+ "data-test": "pager-previous",
42
+ class: d(b)
43
+ }, {
44
+ default: s(() => [
45
+ l(t(g), {
46
+ name: "arrowUpSLine",
47
+ size: 18
48
+ })
49
+ ]),
50
+ _: 1
51
+ }, 8, ["to", "aria-label"])
52
+ ]),
53
+ _: 1
54
+ }, 8, ["text"])) : (a(), v("span", {
55
+ key: 1,
56
+ class: d([b, L]),
57
+ "aria-hidden": "true"
58
+ }, [
59
+ l(t(g), {
60
+ name: "arrowUpSLine",
61
+ size: 18
62
+ })
63
+ ], 2)),
64
+ R("span", j, y(e.neighbors.position) + " / " + y(e.neighbors.total), 1),
65
+ e.neighbors.next ? (a(), c(t($), {
66
+ key: 2,
67
+ side: "bottom",
68
+ delay: 300,
69
+ text: `${t(r)("core.resource.pager.next")} (→ / J)`
70
+ }, {
71
+ default: s(() => [
72
+ l(t(x), {
73
+ to: e.neighbors.next,
74
+ "aria-label": t(r)("core.resource.pager.next"),
75
+ "aria-keyshortcuts": "ArrowRight J",
76
+ "data-test": "pager-next",
77
+ class: d(b)
78
+ }, {
79
+ default: s(() => [
80
+ l(t(g), {
81
+ name: "arrowDownSLine",
82
+ size: 18
83
+ })
84
+ ]),
85
+ _: 1
86
+ }, 8, ["to", "aria-label"])
87
+ ]),
88
+ _: 1
89
+ }, 8, ["text"])) : (a(), v("span", {
90
+ key: 3,
91
+ class: d([b, L]),
92
+ "aria-hidden": "true"
93
+ }, [
94
+ l(t(g), {
95
+ name: "arrowDownSLine",
96
+ size: 18
97
+ })
98
+ ], 2))
99
+ ], 8, V));
100
+ }
101
+ }), M = /* @__PURE__ */ S({
102
+ __name: "ResourcePage",
103
+ props: {
104
+ resource: {},
105
+ title: {},
106
+ back: { default: void 0 },
107
+ list: { default: null },
108
+ actions: { default: () => [] },
109
+ width: { default: "content" }
110
+ },
111
+ setup(h) {
112
+ const e = h, { t: r } = z(), i = m(() => e.resource.state.value), n = m(() => e.resource.data.value), p = m(() => i.value.status === "failed" && "reason" in i.value && i.value.reason === "notFound"), u = m(() => e.back ?? e.list?.back ?? null);
113
+ return (o, _) => (a(), c(C, {
114
+ title: e.title,
115
+ "document-title": e.title,
116
+ back: u.value,
117
+ actions: e.actions,
118
+ width: e.width
119
+ }, w({
120
+ default: s(() => [
121
+ p.value ? (a(), c(D, {
122
+ key: 0,
123
+ title: t(r)("core.resource.not_found.title"),
124
+ description: t(r)("core.resource.not_found.body"),
125
+ icon: "errorWarningLine"
126
+ }, null, 8, ["title", "description"])) : (a(), c(B, {
127
+ key: 1,
128
+ state: i.value,
129
+ "is-empty": () => !1,
130
+ onRetry: _[0] || (_[0] = (k) => e.resource.reload())
131
+ }, w({
132
+ default: s(({ value: k }) => [
133
+ f(o.$slots, "default", { record: k })
134
+ ]),
135
+ _: 2
136
+ }, [
137
+ o.$slots.loading ? {
138
+ name: "skeleton",
139
+ fn: s(() => [
140
+ f(o.$slots, "loading")
141
+ ]),
142
+ key: "0"
143
+ } : void 0
144
+ ]), 1032, ["state"]))
145
+ ]),
146
+ _: 2
147
+ }, [
148
+ o.$slots.pager || e.list?.neighbors ? {
149
+ name: "pager",
150
+ fn: s(() => [
151
+ f(o.$slots, "pager", {}, () => [
152
+ e.list?.neighbors ? (a(), c(E, {
153
+ key: 0,
154
+ neighbors: e.list.neighbors
155
+ }, null, 8, ["neighbors"])) : A("", !0)
156
+ ])
157
+ ]),
158
+ key: "0"
159
+ } : void 0,
160
+ n.value !== null && o.$slots.header ? {
161
+ name: "header",
162
+ fn: s(() => [
163
+ f(o.$slots, "header", { record: n.value })
164
+ ]),
165
+ key: "1"
166
+ } : void 0
167
+ ]), 1032, ["title", "document-title", "back", "actions", "width"]));
168
+ }
169
+ });
170
+ export {
171
+ E as _,
172
+ M as a
173
+ };
@@ -0,0 +1,299 @@
1
+ import { defineComponent as I, computed as y, ref as M, openBlock as l, createElementBlock as v, createElementVNode as w, unref as t, Fragment as B, renderList as N, normalizeClass as K, toDisplayString as d, createVNode as V, withCtx as p, createTextVNode as h, createCommentVNode as $, createBlock as _, createSlots as X, watch as Y, mergeProps as F } from "vue";
2
+ import { useI18n as Q } from "vue-i18n";
3
+ import { u as Z } from "./FormErrors.vue_vue_type_script_setup_true_lang-DVgNBQ8p.js";
4
+ import { _ as G } from "./FormGroup.vue_vue_type_script_setup_true_lang-0mfG8TkU.js";
5
+ import { _ as ee } from "./FormView.vue_vue_type_script_setup_true_lang-Bz2m3AtF.js";
6
+ import { _ as te, a as se } from "./TextareaField.vue_vue_type_script_setup_true_lang-CU3KTKIJ.js";
7
+ import { _ as ae } from "./TextField.vue_vue_type_script_setup_true_lang-C_FMf3Vc.js";
8
+ import { u as oe } from "./useSaveChrome-chi6D3HY.js";
9
+ import { t as ne } from "./toast-D9Z5To38.js";
10
+ import { _ as S } from "./Badge.vue_vue_type_script_setup_true_lang-DJyZc0C7.js";
11
+ import { _ as E } from "./Banner.vue_vue_type_script_setup_true_lang-Cib_YYpr.js";
12
+ import { d as W, u as J, p as le, o as R, r as D, g as H, s as re, e as ie, a as ce, f as ue, b as de, h as me } from "./index-B2dbYZR9.js";
13
+ import { _ as fe } from "./Button.vue_vue_type_script_setup_true_lang-CYil8h9z.js";
14
+ import { _ as pe } from "./Tabs.vue_vue_type_script_setup_true_lang-BeGaydRr.js";
15
+ import { _ as _e } from "./SegmentedField.vue_vue_type_script_setup_true_lang-BZ9UdgA1.js";
16
+ import { u as ge } from "./platform-hunMqFdB.js";
17
+ const ve = {
18
+ class: "flex min-w-0 flex-col gap-4 lg:grid lg:grid-cols-[15rem_minmax(0,1fr)] lg:items-start lg:gap-8",
19
+ "data-test": "permission-tree"
20
+ }, be = ["aria-label"], ye = ["data-test", "aria-current", "onClick"], he = { class: "min-w-0 flex-1 truncate" }, ke = ["data-test"], xe = ["data-test"], we = { class: "flex min-w-0 items-center justify-between gap-3 px-row-inset" }, $e = { class: "min-w-0 flex-1 text-title3 font-semibold text-content-strong" }, Oe = { class: "text-footnote tabular-nums text-content-muted" }, Le = {
21
+ key: 0,
22
+ class: "contents",
23
+ "data-test": "tree-toggle-all"
24
+ }, Ve = /* @__PURE__ */ I({
25
+ __name: "PermissionTree",
26
+ props: {
27
+ grants: {},
28
+ readonly: { type: Boolean }
29
+ },
30
+ setup(U) {
31
+ const i = U, { t: g } = Q(), { catalogue: a } = W(), m = J(), r = y(() => le(a)), b = M(r.value[0]?.key ?? ""), f = y(() => r.value.find((e) => e.key === b.value) ?? r.value[0]), j = (e) => Object.entries(a).filter(([, s]) => ie(s) === e).map(([s]) => s), O = (e) => {
32
+ const s = j(e);
33
+ return { granted: s.filter((o) => o in i.grants).length, total: s.length };
34
+ }, k = (e) => `${O(e).granted} / ${O(e).total}`, T = y(() => r.value.map((e) => ({ value: e.key, label: m.groupLabel(e.key), badge: k(e.key) }))), u = y(() => f.value !== void 0 && O(f.value.key).granted === O(f.value.key).total);
35
+ function q() {
36
+ if (f.value)
37
+ for (const e of j(f.value.key))
38
+ u.value ? D(a, i.grants, e) : H(a, i.grants, e);
39
+ }
40
+ const z = (e) => [...new Set(e.permissions.map((s) => s.ownable).filter((s) => s !== null))], x = y(() => ["own", "own_location", "all"].map((e) => ({ value: e, label: m.qualifierLabel(e) })));
41
+ function A(e, s) {
42
+ const o = R(a, i.grants, s) ?? "own", n = e.permissions.some((L) => L.ownable === s && L.unownedIsOwn);
43
+ return [m.qualifierHint(o), o === "own" && n ? g("core.access.unowned") : ""].filter(Boolean).join(" · ");
44
+ }
45
+ function C(e) {
46
+ const s = e.requires.map((o) => m.permissionLabel(o)).join(", ");
47
+ return [m.permissionDescription(e.id), s ? g("core.access.requires", { names: s }) : ""].filter(Boolean).join(" ");
48
+ }
49
+ const P = (e, s) => re(a, i.grants, e, s), c = (e, s) => s ? H(a, i.grants, e) : D(a, i.grants, e);
50
+ return (e, s) => (l(), v("div", ve, [
51
+ w("nav", {
52
+ class: "hidden flex-col gap-0.5 lg:sticky lg:top-4 lg:flex",
53
+ "aria-label": t(g)("core.access.modules"),
54
+ "data-test": "tree-modules"
55
+ }, [
56
+ (l(!0), v(B, null, N(r.value, (o) => (l(), v("button", {
57
+ key: o.key,
58
+ type: "button",
59
+ "data-test": `tree-module-${o.key}`,
60
+ "aria-current": b.value === o.key ? "true" : void 0,
61
+ class: K(["flex h-9 items-center justify-between gap-3 rounded-control px-3 text-left text-body transition-colors duration-motion-fast hover:bg-fill focus-visible:outline-2 focus-visible:outline-border-focus", b.value === o.key ? "bg-tint-soft font-semibold text-content-strong" : "text-content"]),
62
+ onClick: (n) => b.value = o.key
63
+ }, [
64
+ w("span", he, d(t(m).groupLabel(o.key)), 1),
65
+ w("span", {
66
+ class: "text-footnote tabular-nums text-content-muted",
67
+ "data-test": `tree-count-${o.key}`
68
+ }, d(k(o.key)), 9, ke)
69
+ ], 10, ye))), 128))
70
+ ], 8, be),
71
+ V(t(pe), {
72
+ modelValue: b.value,
73
+ "onUpdate:modelValue": s[0] || (s[0] = (o) => b.value = o),
74
+ tabs: T.value,
75
+ presentation: "scope",
76
+ class: "lg:hidden"
77
+ }, null, 8, ["modelValue", "tabs"]),
78
+ f.value ? (l(), v("div", {
79
+ key: 0,
80
+ class: "flex min-w-0 flex-col gap-6",
81
+ "data-test": `tree-panel-${f.value.key}`
82
+ }, [
83
+ w("div", we, [
84
+ w("h2", $e, d(t(m).groupLabel(f.value.key)), 1),
85
+ w("span", Oe, d(k(f.value.key)), 1),
86
+ i.readonly ? $("", !0) : (l(), v("span", Le, [
87
+ V(t(fe), {
88
+ prominence: "secondary",
89
+ size: "sm",
90
+ onClick: q
91
+ }, {
92
+ default: p(() => [
93
+ h(d(u.value ? t(g)("core.access.turn_off_all") : t(g)("core.access.turn_on_all")), 1)
94
+ ]),
95
+ _: 1
96
+ })
97
+ ]))
98
+ ]),
99
+ (l(!0), v(B, null, N(f.value.screens, (o) => (l(), _(t(G), {
100
+ key: o.key,
101
+ header: t(m).screenLabel(o.key)
102
+ }, {
103
+ default: p(() => [
104
+ (l(!0), v(B, null, N(z(o), (n) => (l(), _(t(_e), {
105
+ key: n,
106
+ label: t(m).ownableLabel(n),
107
+ hint: A(o, n),
108
+ "model-value": t(R)(t(a), i.grants, n) ?? "own",
109
+ options: x.value,
110
+ disabled: i.readonly || t(R)(t(a), i.grants, n) === null,
111
+ "onUpdate:modelValue": (L) => P(n, L)
112
+ }, null, 8, ["label", "hint", "model-value", "options", "disabled", "onUpdate:modelValue"]))), 128)),
113
+ (l(!0), v(B, null, N(o.permissions, (n) => (l(), _(t(te), {
114
+ key: n.id,
115
+ label: t(m).permissionLabel(n.id),
116
+ hint: C(n),
117
+ "model-value": n.id in i.grants,
118
+ disabled: i.readonly,
119
+ "onUpdate:modelValue": (L) => c(n.id, !!L)
120
+ }, X({ _: 2 }, [
121
+ n.sensitive || n.system || n.organizationOnly ? {
122
+ name: "before",
123
+ fn: p(() => [
124
+ n.sensitive ? (l(), _(t(S), {
125
+ key: 0,
126
+ tone: "warning"
127
+ }, {
128
+ default: p(() => [
129
+ h(d(t(g)("core.access.sensitive")), 1)
130
+ ]),
131
+ _: 1
132
+ })) : $("", !0),
133
+ n.system ? (l(), _(t(S), {
134
+ key: 1,
135
+ tone: "neutral"
136
+ }, {
137
+ default: p(() => [
138
+ h(d(t(g)("core.access.system")), 1)
139
+ ]),
140
+ _: 1
141
+ })) : n.organizationOnly ? (l(), _(t(S), {
142
+ key: 2,
143
+ tone: "info"
144
+ }, {
145
+ default: p(() => [
146
+ h(d(t(g)("core.access.organization_only")), 1)
147
+ ]),
148
+ _: 1
149
+ })) : $("", !0)
150
+ ]),
151
+ key: "0"
152
+ } : void 0
153
+ ]), 1032, ["label", "hint", "model-value", "disabled", "onUpdate:modelValue"]))), 128))
154
+ ]),
155
+ _: 2
156
+ }, 1032, ["header"]))), 128))
157
+ ], 8, xe)) : $("", !0)
158
+ ]));
159
+ }
160
+ }), je = {
161
+ class: "flex min-w-0 flex-col gap-group-gap",
162
+ "data-test": "role-editor"
163
+ }, qe = {
164
+ key: 0,
165
+ class: "flex flex-wrap gap-1.5 px-row-inset py-2",
166
+ "data-test": "role-attrs"
167
+ }, Qe = /* @__PURE__ */ I({
168
+ __name: "RoleEditor",
169
+ props: {
170
+ role: {},
171
+ source: {}
172
+ },
173
+ emits: ["saved"],
174
+ setup(U, { expose: i, emit: g }) {
175
+ const a = U, m = g, { t: r } = Q(), b = J(), { catalogue: f } = W(), j = ce(), { access: O } = ge(), k = (c, e) => {
176
+ const s = c ?? e ?? null;
177
+ return {
178
+ name: c ? c.name : e ? r("core.access.copy_name", { name: b.roleName(e) }) : "",
179
+ description: s?.description ?? "",
180
+ grants: Object.fromEntries((s?.grants ?? []).map((o) => [o.permission, o.qualifier]))
181
+ };
182
+ }, u = Z({
183
+ defaults: () => k(a.role, a.source),
184
+ validator: {
185
+ safeParse(c) {
186
+ const e = c, s = [
187
+ ...e.name.trim() === "" ? [{ path: ["name"], message: r("core.access.name_required") }] : [],
188
+ ...e.name.length > 100 ? [{ path: ["name"], message: r("core.access.too_long") }] : [],
189
+ ...e.description.length > 255 ? [{ path: ["description"], message: r("core.access.too_long") }] : []
190
+ ];
191
+ return s.length === 0 ? { success: !0, data: e } : { success: !1, error: { issues: s } };
192
+ }
193
+ },
194
+ failureMessage: ue()
195
+ }), q = M([]);
196
+ function z() {
197
+ u.hydrate(k(a.role, a.source)), q.value = me(f, u.values.grants);
198
+ }
199
+ z(), Y(() => [a.role, a.source], z);
200
+ const x = y(() => a.role !== null && (a.role.predefined || a.role.computed) || !O.can(de.manageRoles)), A = y(
201
+ () => q.value.length === 0 || x.value ? "" : r("core.access.completed", { names: q.value.map((c) => b.permissionLabel(c)).join(", ") })
202
+ );
203
+ async function C() {
204
+ if (x.value) return;
205
+ const c = await u.submit(
206
+ (e) => {
207
+ const s = {
208
+ name: e.name.trim(),
209
+ description: e.description,
210
+ grants: Object.entries(e.grants).map(([o, n]) => ({ permission: o, qualifier: n })),
211
+ // Constraints are the application's own business: kept as the role has them.
212
+ attrs: (a.role ?? a.source)?.attrs ?? []
213
+ };
214
+ return a.role ? j.update({ ref: a.role.ref, ...s }) : j.create(s);
215
+ },
216
+ { hydrateFrom: (e) => k(e, null) }
217
+ );
218
+ (c.status === "saved" || c.status === "saved-refresh-failed") && (ne.success(r("core.access.saved")), m("saved", c.value));
219
+ }
220
+ oe({ form: u, label: () => r("core.access.save"), allowed: () => !x.value, save: () => void C(), cancel: () => u.reset() });
221
+ const P = y(() => (a.role ?? a.source)?.attrs ?? []);
222
+ return i({ form: u, save: C }), (c, e) => (l(), _(t(ee), {
223
+ form: t(u),
224
+ onSubmit: C
225
+ }, {
226
+ default: p(() => [
227
+ w("div", je, [
228
+ a.role?.computed ? (l(), _(t(E), {
229
+ key: 0,
230
+ tone: "info",
231
+ "data-test": "role-computed-note"
232
+ }, {
233
+ default: p(() => [
234
+ h(d(t(r)("core.access.notes.computed")), 1)
235
+ ]),
236
+ _: 1
237
+ })) : a.role?.predefined ? (l(), _(t(E), {
238
+ key: 1,
239
+ tone: "info",
240
+ "data-test": "role-predefined-note"
241
+ }, {
242
+ default: p(() => [
243
+ h(d(t(r)("core.access.notes.predefined")), 1)
244
+ ]),
245
+ _: 1
246
+ })) : $("", !0),
247
+ A.value ? (l(), _(t(E), {
248
+ key: 2,
249
+ tone: "warning",
250
+ "data-test": "role-completed-note"
251
+ }, {
252
+ default: p(() => [
253
+ h(d(A.value), 1)
254
+ ]),
255
+ _: 1
256
+ })) : $("", !0),
257
+ V(t(G), {
258
+ header: t(r)("core.access.groups.role"),
259
+ editable: !x.value,
260
+ "label-width": "12rem"
261
+ }, {
262
+ default: p(() => [
263
+ V(t(ae), F(t(u).bind("name"), {
264
+ label: t(r)("core.access.fields.name"),
265
+ "max-length": 100,
266
+ required: ""
267
+ }), null, 16, ["label"]),
268
+ V(t(se), F(t(u).bind("description"), {
269
+ label: t(r)("core.access.fields.description"),
270
+ rows: 2,
271
+ "max-length": 255
272
+ }), null, 16, ["label"]),
273
+ P.value.length ? (l(), v("div", qe, [
274
+ (l(!0), v(B, null, N(P.value, (s) => (l(), _(t(S), {
275
+ key: s.attribute,
276
+ tone: "neutral"
277
+ }, {
278
+ default: p(() => [
279
+ h(d(s.attribute) + ": " + d(s.values.join(", ")), 1)
280
+ ]),
281
+ _: 2
282
+ }, 1024))), 128))
283
+ ])) : $("", !0)
284
+ ]),
285
+ _: 1
286
+ }, 8, ["header", "editable"]),
287
+ V(Ve, {
288
+ grants: t(u).values.grants,
289
+ readonly: x.value
290
+ }, null, 8, ["grants", "readonly"])
291
+ ])
292
+ ]),
293
+ _: 1
294
+ }, 8, ["form"]));
295
+ }
296
+ });
297
+ export {
298
+ Qe as _
299
+ };